triggers: there's no need to call chroot anymore.
--HG-- extra : convert_revision : cea0ba9863c0934d8d876801989947e03588d835
This commit is contained in:
@@ -21,19 +21,11 @@ run)
|
||||
|
||||
echo "Running $trigger trigger..."
|
||||
|
||||
if [ "$(pwd)" = "/" ]; then
|
||||
mntproc_cmd="mount -t proc proc /proc"
|
||||
umntproc_cmd="umount /proc"
|
||||
mntsys_cmd="mount -t sysfs none /sys"
|
||||
umntsys_cmd="umount /sys"
|
||||
initramfs_cmd="update-initramfs"
|
||||
else
|
||||
mntproc_cmd="chroot . mount -t proc proc ./proc"
|
||||
umntproc_cmd="chroot . umount ./proc"
|
||||
mntsys_cmd="chroot . mount -t sysfs none ./sys"
|
||||
umntsys_cmd="chroot . umount ./sys"
|
||||
initramfs_cmd="chroot . update-initramfs"
|
||||
fi
|
||||
mntproc_cmd="mount -t proc proc /proc"
|
||||
umntproc_cmd="umount /proc"
|
||||
mntsys_cmd="mount -t sysfs none /sys"
|
||||
umntsys_cmd="umount /sys"
|
||||
initramfs_cmd="update-initramfs"
|
||||
|
||||
if [ "$3" = "kernel" -a ! -f ./var/lib/initramfs-tools/$4 ]; then
|
||||
initramfs_cmd="$initramfs_cmd -c -k $4"
|
||||
|
Reference in New Issue
Block a user