mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] systemd/udev: fix hardware database generating
@ 2016-06-07 18:13 Juergen Borleis
  2016-06-07 21:56 ` Ladislav Michl
  2016-06-14  7:26 ` Michael Olbrich
  0 siblings, 2 replies; 3+ messages in thread
From: Juergen Borleis @ 2016-06-07 18:13 UTC (permalink / raw)
  To: ptxdist

Without this fix systemd fails at run-time with:
    
  systemd-hwdb-update.service - Rebuild Hardware Database
   Loaded: loaded (/lib/systemd/system/systemd-hwdb-update.service; static; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2016-06-07 15:45:38 UTC; 16min ago
Condition: start condition failed at Tue 2016-06-07 15:45:55 UTC; 16min ago
           ConditionNeedsUpdate=/etc was not met
     Docs: man:hwdb(7)
      man:systemd-hwdb(8)
 Main PID: 413 (code=exited, status=203/EXEC)
    
Jun 07 15:45:38 qemu systemd[1]: systemd-hwdb-update.service: Main process exited, code=exited, status=203/EXEC
Jun 07 15:45:38 qemu systemd[1]: Failed to start Rebuild Hardware Database.
Jun 07 15:45:38 qemu systemd[1]: systemd-hwdb-update.service: Unit entered failed state.
Jun 07 15:45:38 qemu systemd[1]: systemd-hwdb-update.service: Failed with result 'exit-code'.
    
Signed-off-by: Juergen Borleis <jbe@pengutronix.de>

diff --git a/rules/systemd.make b/rules/systemd.make
index 29ddbd84f793..c5ac60843dde 100644
--- a/rules/systemd.make
+++ b/rules/systemd.make
@@ -156,7 +156,7 @@ $(STATEDIR)/systemd.install:
 	@$(call targetinfo)
 	@$(call world/install, SYSTEMD)
 ifdef PTXCONF_UDEV_HWDB
-	@systemd-hwdb update --root $(SYSTEMD_PKGDIR)
+	@systemd-hwdb update --usr --root $(SYSTEMD_PKGDIR)
 endif
 ifndef PTXCONF_SYSTEMD_VCONSOLE
 	@rm -v $(SYSTEMD_PKGDIR)/etc/systemd/system/getty.target.wants/getty@tty1.service
diff --git a/rules/udev.make b/rules/udev.make
index 2ad990b70e56..c6df5c5b90fb 100644
--- a/rules/udev.make
+++ b/rules/udev.make
@@ -186,7 +186,7 @@ ifdef PTXCONF_UDEV_ETC_CONF
 	@$(call install_alternative, udev, 0, 0, 0644, /etc/udev/udev.conf)
 endif
 ifdef PTXCONF_UDEV_HWDB
-	@$(call install_copy, udev, 0, 0, 0644, -, /etc/udev/hwdb.bin)
+	@$(call install_copy, udev, 0, 0, 0644, -, /lib/udev/hwdb.bin)
 endif
 
 ifdef PTXCONF_UDEV_LEGACY

-- 
Pengutronix e.K.                              | Juergen Borleis             |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] [PATCH] systemd/udev: fix hardware database generating
  2016-06-07 18:13 [ptxdist] [PATCH] systemd/udev: fix hardware database generating Juergen Borleis
@ 2016-06-07 21:56 ` Ladislav Michl
  2016-06-14  7:26 ` Michael Olbrich
  1 sibling, 0 replies; 3+ messages in thread
From: Ladislav Michl @ 2016-06-07 21:56 UTC (permalink / raw)
  To: ptxdist

On Tue, Jun 07, 2016 at 08:13:59PM +0200, Juergen Borleis wrote:
> Without this fix systemd fails at run-time with:
>     
>   systemd-hwdb-update.service - Rebuild Hardware Database
>    Loaded: loaded (/lib/systemd/system/systemd-hwdb-update.service; static; vendor preset: enabled)
>    Active: failed (Result: exit-code) since Tue 2016-06-07 15:45:38 UTC; 16min ago
> Condition: start condition failed at Tue 2016-06-07 15:45:55 UTC; 16min ago
>            ConditionNeedsUpdate=/etc was not met
>      Docs: man:hwdb(7)
>       man:systemd-hwdb(8)
>  Main PID: 413 (code=exited, status=203/EXEC)
>     
> Jun 07 15:45:38 qemu systemd[1]: systemd-hwdb-update.service: Main process exited, code=exited, status=203/EXEC
> Jun 07 15:45:38 qemu systemd[1]: Failed to start Rebuild Hardware Database.
> Jun 07 15:45:38 qemu systemd[1]: systemd-hwdb-update.service: Unit entered failed state.
> Jun 07 15:45:38 qemu systemd[1]: systemd-hwdb-update.service: Failed with result 'exit-code'.
>     
> Signed-off-by: Juergen Borleis <jbe@pengutronix.de>

Indeed, it was annoying, but never that much to look for cause myself... Thank you.

Tested-by: Ladislav Michl <ladis@linux-mips.org>

> diff --git a/rules/systemd.make b/rules/systemd.make
> index 29ddbd84f793..c5ac60843dde 100644
> --- a/rules/systemd.make
> +++ b/rules/systemd.make
> @@ -156,7 +156,7 @@ $(STATEDIR)/systemd.install:
>  	@$(call targetinfo)
>  	@$(call world/install, SYSTEMD)
>  ifdef PTXCONF_UDEV_HWDB
> -	@systemd-hwdb update --root $(SYSTEMD_PKGDIR)
> +	@systemd-hwdb update --usr --root $(SYSTEMD_PKGDIR)
>  endif
>  ifndef PTXCONF_SYSTEMD_VCONSOLE
>  	@rm -v $(SYSTEMD_PKGDIR)/etc/systemd/system/getty.target.wants/getty@tty1.service
> diff --git a/rules/udev.make b/rules/udev.make
> index 2ad990b70e56..c6df5c5b90fb 100644
> --- a/rules/udev.make
> +++ b/rules/udev.make
> @@ -186,7 +186,7 @@ ifdef PTXCONF_UDEV_ETC_CONF
>  	@$(call install_alternative, udev, 0, 0, 0644, /etc/udev/udev.conf)
>  endif
>  ifdef PTXCONF_UDEV_HWDB
> -	@$(call install_copy, udev, 0, 0, 0644, -, /etc/udev/hwdb.bin)
> +	@$(call install_copy, udev, 0, 0, 0644, -, /lib/udev/hwdb.bin)
>  endif
>  
>  ifdef PTXCONF_UDEV_LEGACY
> 

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] [PATCH] systemd/udev: fix hardware database generating
  2016-06-07 18:13 [ptxdist] [PATCH] systemd/udev: fix hardware database generating Juergen Borleis
  2016-06-07 21:56 ` Ladislav Michl
@ 2016-06-14  7:26 ` Michael Olbrich
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Olbrich @ 2016-06-14  7:26 UTC (permalink / raw)
  To: ptxdist

On Tue, Jun 07, 2016 at 08:13:59PM +0200, Juergen Borleis wrote:
> Without this fix systemd fails at run-time with:
>     
>   systemd-hwdb-update.service - Rebuild Hardware Database
>    Loaded: loaded (/lib/systemd/system/systemd-hwdb-update.service; static; vendor preset: enabled)
>    Active: failed (Result: exit-code) since Tue 2016-06-07 15:45:38 UTC; 16min ago
> Condition: start condition failed at Tue 2016-06-07 15:45:55 UTC; 16min ago
>            ConditionNeedsUpdate=/etc was not met
>      Docs: man:hwdb(7)
>       man:systemd-hwdb(8)
>  Main PID: 413 (code=exited, status=203/EXEC)
>     
> Jun 07 15:45:38 qemu systemd[1]: systemd-hwdb-update.service: Main process exited, code=exited, status=203/EXEC
> Jun 07 15:45:38 qemu systemd[1]: Failed to start Rebuild Hardware Database.
> Jun 07 15:45:38 qemu systemd[1]: systemd-hwdb-update.service: Unit entered failed state.
> Jun 07 15:45:38 qemu systemd[1]: systemd-hwdb-update.service: Failed with result 'exit-code'.
>     
> Signed-off-by: Juergen Borleis <jbe@pengutronix.de>

Thanks, applied.

Michael

> 
> diff --git a/rules/systemd.make b/rules/systemd.make
> index 29ddbd84f793..c5ac60843dde 100644
> --- a/rules/systemd.make
> +++ b/rules/systemd.make
> @@ -156,7 +156,7 @@ $(STATEDIR)/systemd.install:
>  	@$(call targetinfo)
>  	@$(call world/install, SYSTEMD)
>  ifdef PTXCONF_UDEV_HWDB
> -	@systemd-hwdb update --root $(SYSTEMD_PKGDIR)
> +	@systemd-hwdb update --usr --root $(SYSTEMD_PKGDIR)
>  endif
>  ifndef PTXCONF_SYSTEMD_VCONSOLE
>  	@rm -v $(SYSTEMD_PKGDIR)/etc/systemd/system/getty.target.wants/getty@tty1.service
> diff --git a/rules/udev.make b/rules/udev.make
> index 2ad990b70e56..c6df5c5b90fb 100644
> --- a/rules/udev.make
> +++ b/rules/udev.make
> @@ -186,7 +186,7 @@ ifdef PTXCONF_UDEV_ETC_CONF
>  	@$(call install_alternative, udev, 0, 0, 0644, /etc/udev/udev.conf)
>  endif
>  ifdef PTXCONF_UDEV_HWDB
> -	@$(call install_copy, udev, 0, 0, 0644, -, /etc/udev/hwdb.bin)
> +	@$(call install_copy, udev, 0, 0, 0644, -, /lib/udev/hwdb.bin)
>  endif
>  
>  ifdef PTXCONF_UDEV_LEGACY
> 
> -- 
> Pengutronix e.K.                              | Juergen Borleis             |
> Industrial Linux Solutions                    | http://www.pengutronix.de/  |
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-14  7:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-07 18:13 [ptxdist] [PATCH] systemd/udev: fix hardware database generating Juergen Borleis
2016-06-07 21:56 ` Ladislav Michl
2016-06-14  7:26 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox