triggers: there's no need to call chroot anymore.

--HG--
extra : convert_revision : cea0ba9863c0934d8d876801989947e03588d835
This commit is contained in:
Juan RP 2009-04-08 03:23:09 +02:00
parent 2ff413127b
commit 22f6b0eac7
2 changed files with 6 additions and 14 deletions

View file

@ -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"