Prefix mount and unmount in lh_binary_debian-installer with LH_ROOT_COMMAND.
This commit is contained in:
parent
336687882c
commit
1edb371113
|
@ -285,12 +285,12 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir mini.tmp
|
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/vmlinuz-${DEFAULT_FLAVOUR} "${DESTDIR}"/"${VMLINUZ_DI}"
|
||||||
cp mini.tmp/boot/initrd.gz "${DESTDIR}"/"${INITRD_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
|
rm -rf mini.tmp mini.iso
|
||||||
else
|
else
|
||||||
# Downloading debian-installer
|
# Downloading debian-installer
|
||||||
|
|
Loading…
Reference in New Issue