Skip to content

Commit 5c93e34

Browse files
committed
Replace 7z with xorriso. Fixes issue #6.
1 parent 20f7a31 commit 5c93e34

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ubuntu-autoinstall-generator.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ else
150150
fi
151151

152152
log "🔎 Checking for required utilities..."
153-
[[ ! -x "$(command -v 7z)" ]] && die "💥 7z is not installed. On Ubuntu, install the 'p7zip-full' package."
153+
[[ ! -x "$(command -v xorriso)" ]] && die "💥 xorriso is not installed. On Ubuntu, install the 'xorriso' package."
154154
[[ ! -x "$(command -v sed)" ]] && die "💥 sed is not installed. On Ubuntu, install the 'sed' package."
155155
[[ ! -x "$(command -v curl)" ]] && die "💥 curl is not installed. On Ubuntu, install the 'curl' package."
156156
[[ ! -x "$(command -v mkisofs)" ]] && die "💥 mkisofs is not installed. On Ubuntu, install the 'genisoimage' package."
@@ -208,7 +208,8 @@ else
208208
log "🤞 Skipping verification of source ISO."
209209
fi
210210
log "🔧 Extracting ISO image..."
211-
7z -y x "${source_iso}" -o"$tmpdir" >/dev/null
211+
xorriso -osirrox on -indev "${source_iso}" -extract / "$tmpdir" &>/dev/null
212+
chmod -R u+w "$tmpdir"
212213
rm -rf "$tmpdir/"'[BOOT]'
213214
log "👍 Extracted to $tmpdir"
214215

0 commit comments

Comments
 (0)