Add a sleep after writing mbr.bin because syslinux doesn't work
This commit is contained in:
parent
163426c4ac
commit
8ef087a3bb
1 changed files with 2 additions and 1 deletions
3
init.sh
3
init.sh
|
@ -164,7 +164,8 @@ then
|
||||||
# In this mode, we need to write syslinux MBR.
|
# In this mode, we need to write syslinux MBR.
|
||||||
echo "Writing syslinux mbr.ini fo $dest"
|
echo "Writing syslinux mbr.ini fo $dest"
|
||||||
dd bs=440 count=1 conv=notrunc if=${syslinux_mod}/${BOOT_TYPE}/mbr.bin of=${dest}
|
dd bs=440 count=1 conv=notrunc if=${syslinux_mod}/${BOOT_TYPE}/mbr.bin of=${dest}
|
||||||
syslinux --directory syslinux --install ${dest}1
|
sleep 2
|
||||||
|
syslinux --directory /syslinux --install ${dest}1
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Reference in a new issue