X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=inline;f=update-initramfs.sh.in;h=080cfdd2c77ff9f3905c6b8fa52e349903389a5e;hb=135d55fe24bce65f8eb8ca50193eda8287fe7c9a;hp=89f629c40c0f5e46dd4bd4cf58c80fd8703ea656;hpb=207056e82372093fa5bc678a9e55a2abc33704fa;p=libguestfs.git diff --git a/update-initramfs.sh.in b/update-initramfs.sh.in index 89f629c..080cfdd 100755 --- a/update-initramfs.sh.in +++ b/update-initramfs.sh.in @@ -19,15 +19,14 @@ # Update the daemon inside an existing initramfs. Avoids the # timeconsuming rebuild. +unset CDPATH + set -e output=initramfs.@REPO@.@host_cpu@.img # Copy the daemon into the filesystem. -cp @abs_builddir@/daemon/guestfsd initramfs/sbin/guestfsd.new -@FEBOOTSTRAP_RUN@ initramfs -- \ - install -m 0755 -o root -g root /sbin/guestfsd.new /sbin/guestfsd -rm initramfs/sbin/guestfsd.new +@FEBOOTSTRAP_INSTALL@ initramfs @abs_builddir@/daemon/guestfsd /sbin/guestfsd 0755 root.root # Generate final image. @FEBOOTSTRAP_TO_INITRAMFS@ initramfs > $output-t