'fixed chrooting'

This commit is contained in:
Tobias Powalowski 2009-04-26 17:58:40 +02:00
parent 393b4ae579
commit 50dd91718f

View file

@ -2129,7 +2129,7 @@ dosyslinux() {
cp ${TEMPDIR}/syslinux.cfg ${DESTDIR}/boot/syslinux.cfg cp ${TEMPDIR}/syslinux.cfg ${DESTDIR}/boot/syslinux.cfg
cat ${MBR} > ${ROOTDEV} cat ${MBR} > ${ROOTDEV}
chroot_mount chroot_mount
chroot /usr/bin/syslinux -o offset $bootdev >$LOG 2>&1 chroot $DESTDIR /usr/bin/syslinux -o offset $bootdev >$LOG 2>&1
if [ $? -gt 0 ]; then if [ $? -gt 0 ]; then
chroot_umount chroot_umount
DIALOG --msgbox "Error installing SYSLINUX. (see $LOG for output)" 0 0 DIALOG --msgbox "Error installing SYSLINUX. (see $LOG for output)" 0 0