Skip to content

Commit

Permalink
feat: Set custom label (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Jan 16, 2024
1 parent d057b5b commit 7c88b1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ rm -rf "$TMP"
mkdir -p "$TMP"

if [ -f "$STORAGE/custom.iso" ]; then
ATTENDED="Y"
LABEL="Custom"
cp "$STORAGE/custom.iso" "$TMP/$BASE"
fi

if [ ! -f "$TMP/$BASE" ]; then

LABEL="$VERSION"
SCRIPT="$TMP/mido.sh"

cp /run/mido.sh "$SCRIPT"
Expand Down Expand Up @@ -48,7 +51,7 @@ if [[ "$ATTENDED" != [Yy1]* ]]; then
fi

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"

mv "$TMP/$BASE.tmp" "$STORAGE/$BASE"
Expand Down

0 comments on commit 7c88b1e

Please sign in to comment.