feat: Set custom label (#30)
This commit is contained in:
parent
d057b5bd06
commit
7c88b1e0ac
|
@ -15,11 +15,14 @@ rm -rf "$TMP"
|
||||||
mkdir -p "$TMP"
|
mkdir -p "$TMP"
|
||||||
|
|
||||||
if [ -f "$STORAGE/custom.iso" ]; then
|
if [ -f "$STORAGE/custom.iso" ]; then
|
||||||
|
ATTENDED="Y"
|
||||||
|
LABEL="Custom"
|
||||||
cp "$STORAGE/custom.iso" "$TMP/$BASE"
|
cp "$STORAGE/custom.iso" "$TMP/$BASE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "$TMP/$BASE" ]; then
|
if [ ! -f "$TMP/$BASE" ]; then
|
||||||
|
|
||||||
|
LABEL="$VERSION"
|
||||||
SCRIPT="$TMP/mido.sh"
|
SCRIPT="$TMP/mido.sh"
|
||||||
|
|
||||||
cp /run/mido.sh "$SCRIPT"
|
cp /run/mido.sh "$SCRIPT"
|
||||||
|
@ -48,7 +51,7 @@ if [[ "$ATTENDED" != [Yy1]* ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
genisoimage -b boot/etfsboot.com -no-emul-boot -c BOOT.CAT -iso-level 4 -J -l -D -N -joliet-long -relaxed-filenames \
|
genisoimage -b boot/etfsboot.com -no-emul-boot -c BOOT.CAT -iso-level 4 -J -l -D -N -joliet-long -relaxed-filenames \
|
||||||
-v -V "$VERSION" -udf -boot-info-table -eltorito-alt-boot -eltorito-boot efi/microsoft/boot/efisys_noprompt.bin \
|
-v -V "$LABEL" -udf -boot-info-table -eltorito-alt-boot -eltorito-boot efi/microsoft/boot/efisys_noprompt.bin \
|
||||||
-no-emul-boot -o "$TMP/$BASE.tmp" -allow-limited-size "$DIR"
|
-no-emul-boot -o "$TMP/$BASE.tmp" -allow-limited-size "$DIR"
|
||||||
|
|
||||||
mv "$TMP/$BASE.tmp" "$STORAGE/$BASE"
|
mv "$TMP/$BASE.tmp" "$STORAGE/$BASE"
|
||||||
|
|
Loading…
Reference in New Issue