2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-25 07:25:34 +00:00

Find the bootable disk for ubuntu

This commit is contained in:
ertaozh
2015-08-10 02:19:14 -04:00
parent 9310faa401
commit 22a3be42ee

View File

@ -63,6 +63,11 @@ d-i partman/early_command string \
mount $d /tmp/mymount || rc=$?; \
if [[ $rc -eq 0 ]]; then \
[[ -d /tmp/mymount/boot ]] && echo $d >>/tmp/devs-with-boot; \
for i in /tmp/mymount/vmlinuz* ; do \
if [ -e $i ]; then \
echo $d >>/tmp/devs-with-boot; break; \
fi; \
done; \
umount /tmp/mymount; \
fi \
done; \