12 lines
552 B
Bash
12 lines
552 B
Bash
#!/bin/bash
|
|
# Rebuild Super GRUB2 ISO (Russian + 2nd item default) from the already-patched tree.
|
|
set -e
|
|
cd /root/sg2dwork/sg2d || exit 1
|
|
grep -n 'set default' menus/sgd/main.cfg | head -3
|
|
./supergrub-mkrescue -o=/root/sg2dwork/super.iso \
|
|
--grub-mkrescue-binary=/usr/bin/grub-mkrescue \
|
|
--grub-mkfont-binary=/usr/bin/grub-mkfont > /tmp/sg_iso.log 2>&1 || { tail -15 /tmp/sg_iso.log; exit 1; }
|
|
ls -l /root/sg2dwork/super.iso
|
|
echo "--- EFI content of ISO:"
|
|
xorriso -indev /root/sg2dwork/super.iso -find /EFI -exec lsdl -- 2>/dev/null | head -40
|