On Thu, Sep 19, 2013 at 11:11:25AM +0100, Mr Green wrote:
> Would like to know if recent arch updates have affected archiso
> scripts? Today added loop module to mkinitcpio,  iso builds refused
> to run due to loop being missing.
> 
> Just a heads up if you need
> 
> MrG
> 
> 

I suppose the problem is that udev no longer creates static nodes on
startup, and this has been left to systemd. Probably easiest to fix this
in mkinitcpio's udev hook.

The attached patch doesn't apply directly to anything but the SVN trunk
of systemd, but it should make enough sense...
Index: initcpio-hook-udev
===================================================================
--- initcpio-hook-udev	(revision 194576)
+++ initcpio-hook-udev	(working copy)
@@ -3,6 +3,8 @@
 run_earlyhook() {
     /usr/lib/systemd/systemd-udevd --daemon --resolve-names=never
     udevd_running=1
+    kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf
+    systemd-tmpfiles --prefix=/dev --create
 }
 
 run_hook() {
Index: initcpio-install-udev
===================================================================
--- initcpio-install-udev	(revision 194576)
+++ initcpio-install-udev	(working copy)
@@ -6,6 +6,7 @@
     add_file "/etc/udev/udev.conf"
     add_binary /usr/lib/systemd/systemd-udevd
     add_binary /usr/bin/udevadm
+    add_binary /usr/bin/systemd-tmpfiles
 
     for rules in 50-udev-default.rules 60-persistent-storage.rules 64-btrfs.rules 80-drivers.rules; do
         add_file "/usr/lib/udev/rules.d/$rules"

Reply via email to