Prefix mount and unmount in lh_binary_debian-installer with LH_ROOT_COMMAND.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
This commit is contained in:
parent
2b77ec6b5d
commit
5093b27576
|
@ -285,12 +285,12 @@ then
|
|||
fi
|
||||
|
||||
mkdir mini.tmp
|
||||
mount -o loop -t iso9660 mini.iso mini.tmp
|
||||
${LH_ROOT_COMMAND} mount -o loop -t iso9660 mini.iso mini.tmp
|
||||
|
||||
cp mini.tmp/boot/vmlinuz-${DEFAULT_FLAVOUR} "${DESTDIR}"/"${VMLINUZ_DI}"
|
||||
cp mini.tmp/boot/initrd.gz "${DESTDIR}"/"${INITRD_DI}"
|
||||
|
||||
umount mini.tmp
|
||||
${LH_ROOT_COMMAND} umount mini.tmp
|
||||
rm -rf mini.tmp mini.iso
|
||||
else
|
||||
# Downloading debian-installer
|
||||
|
|
Loading…
Reference in New Issue