diff options
author | Eric Hameleers <alien@slackware.com> | 2017-03-28 21:03:22 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2017-03-28 21:03:22 +0200 |
commit | e294d47db5b25dd8563e515b3003c008ee4641ce (patch) | |
tree | ec596f20818d2c34eec69d4c194ef019bbd1f525 | |
parent | 295b2dbf8fb78e7605e9e38ba967aa73fd76f3f8 (diff) | |
download | liveslak-e294d47db5b25dd8563e515b3003c008ee4641ce.tar.gz liveslak-e294d47db5b25dd8563e515b3003c008ee4641ce.tar.xz |
Check for existence of initrd.img before attempting to extract the installer
Diffstat (limited to '')
-rwxr-xr-x | make_slackware_live.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 3b66c9e..73d0d90 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -1349,6 +1349,7 @@ chmod 755 ${LIVE_ROOTDIR}/usr/local/sbin/pxeserver # to the ISO. The huge kernel does not require an initrd and installation # to the hard drive will not be complicated. if ls ${LIVE_ROOTDIR}/boot/vmlinuz-huge-* 1>/dev/null 2>/dev/null; then + if [ -f ${DEF_SL_PKGROOT}/../isolinux/initrd.img ]; then # Extract the 'setup' files we need from the Slackware installer # and move them to a single directory in the ISO: mkdir -p ${LIVE_ROOTDIR}/usr/share/${LIVEMAIN} @@ -1423,6 +1424,9 @@ if ls ${LIVE_ROOTDIR}/boot/vmlinuz-huge-* 1>/dev/null 2>/dev/null; then -e "s/@VERSION@/$VERSION/g" \ > ${HOOK_DST} chmod 644 ${HOOK_DST} + else + echo "-- Could not find ${DEF_SL_PKGROOT}/../isolinux/initrd.img - not adding 'setup2hd'!" + fi fi # Add the documentation: |