Skip to content

Commit

Permalink
Merge pull request #172 from grml/only-xorriso
Browse files Browse the repository at this point in the history
Drop vestigial genisoimage/mkisofs support
  • Loading branch information
zeha authored Nov 23, 2024
2 parents 6b8da86 + fab9fdf commit 3634663
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 27 deletions.
3 changes: 1 addition & 2 deletions etc/grml/fai/config/package_config/GRML_FULL
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ e2fsprogs
exfat-fuse
exfatprogs
f2fs-tools
genisoimage
jfsutils
ntfs-3g
reiserfsprogs
tcplay
xfsdump
xfsprogs
xmount
xorriso

# foreign os support/recovery
chntpw
Expand All @@ -120,7 +120,6 @@ mtools
cpp
sqlite3
whois
xorriso

# install linux
cdebootstrap
Expand Down
13 changes: 4 additions & 9 deletions grml-live
Original file line number Diff line number Diff line change
Expand Up @@ -1617,23 +1617,18 @@ else
einfo "Forcing rebuild of ISO because files on ISO have been modified."
fi

# support xorriso as well mkisofs and genisoimage
if which xorriso >/dev/null 2>&1 ; then
MKISOFS='xorriso -as mkisofs'
elif which mkisofs >/dev/null 2>&1; then
MKISOFS='mkisofs'
elif which genisoimage >/dev/null 2>&1; then
MKISOFS='genisoimage'
else
log "Error: neither xorriso nor mkisofs nor genisoimage available - can not create ISO."
eerror "Error: neither xorriso nor mkisofs nor genisoimage available - can not create ISO." ; eend 1
log "Error: xorriso not available - can not create ISO."
eerror "Error: xorriso not available - can not create ISO." ; eend 1
bailout
fi

einfo "Using ${MKISOFS} to build ISO." ; eend 0
case "${ARCH}-${MKISOFS}" in
case "${ARCH}" in
# using -eltorito-alt-boot is limited to xorriso for now
amd64-xorriso*)
amd64)
eindent

if ! dpkg --compare-versions $(dpkg-query -W -f='${Version}\n' xorriso 2>/dev/null) gt-nl 1.1.6-1 ; then
Expand Down
23 changes: 7 additions & 16 deletions remaster/grml-live-remaster
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,10 @@ fi

set -e # exit on any error

if [ -d /run/live/medium/ ] ; then # since Dec 2018
LIVE_PATH_MAIN='/run/live/medium/'
LIVE_PATH_BOOT='/run/live/medium/boot/'
else # until Dec 2018
LIVE_PATH_MAIN='/lib/live/mount/medium/'
LIVE_PATH_BOOT='/lib/live/mount/medium/boot/'
fi
LIVE_PATH_MAIN='/run/live/medium/'
LIVE_PATH_BOOT='/run/live/medium/boot/'

VERSION='0.0.4'
VERSION='0.0.5'
GRML_LIVE_EDITOR=${VISUAL:-${EDITOR:-vi}}

# source core functions {{{
Expand All @@ -49,16 +44,12 @@ if ! isgrmlcd ; then
fi

# make sure we have what we need {{{
if check4progs mkisofs >/dev/null 2>&1 ; then
MKISO=mkisofs
fi

if check4progs genisoimage >/dev/null 2>&1 ; then
MKISO=genisoimage
if check4progs xorriso >/dev/null 2>&1 ; then
MKISO='xorriso -as mkisofs'
fi

if [ -z "$MKISO" ] ; then
echo "Error: neither mkisofs nor genisoimage available. Exiting." >&2
echo "Error: xorriso not installed. Exiting." >&2
exit 1
fi

Expand All @@ -69,7 +60,7 @@ if [ -z "$MKSQUASHFS" ] ; then
if which mksquashfs >/dev/null 2>&1 ; then
MKSQUASHFS=mksquashfs
else
echo "Error: mksquashfs is not available. Exiting." >&2
echo "Error: mksquashfs not installed. Exiting." >&2
exit 1
fi
fi
Expand Down

0 comments on commit 3634663

Please sign in to comment.