X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=make-initramfs.sh.in;h=622efe213fbce313752d172cfa04d53163692378;hb=f01957c37a1cdf74cf01a6c86b8b5a312b27dfba;hp=c739b65cdfdc3998f4af2dd4f20e4db8bdc0eb9a;hpb=bf19b4f0c4b0894924c1c69f3b87504f07c4404d;p=libguestfs.git diff --git a/make-initramfs.sh.in b/make-initramfs.sh.in index c739b65..622efe2 100755 --- a/make-initramfs.sh.in +++ b/make-initramfs.sh.in @@ -144,6 +144,10 @@ __EOF__ @FEBOOTSTRAP_INSTALL@ initramfs init.new /init 0755 root.root rm init.new +# Just in case the kernel isn't looking for /init, make /sbin/init +# be our script, not the real init. +#@FEBOOTSTRAP_RUN@ initramfs -- ln -f /init /sbin/init + # Copy the daemon into the filesystem. @FEBOOTSTRAP_INSTALL@ initramfs @abs_builddir@/daemon/guestfsd /sbin/guestfsd 0755 root.root