Merge pull request #5 from antoniusmisfit/master

Replaced genisoimage with xorriso command
This commit is contained in:
Ivan Davidov 2017-12-20 02:38:59 +02:00 committed by GitHub
commit 8c52fd0d29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 18 deletions

View File

@ -6,7 +6,7 @@ One script which generates fully functional live Linux ISO image with minimal ef
The script below uses **Linux kernel 4.7.6**, **BusyBox 1.24.2** and **Syslinux 6.03**. The source bundles are downloaded and compiled automatically. If you are using [Ubuntu](http://ubuntu.com) or [Linux Mint](http://linuxmint.com), you should be able to resolve all build dependencies by executing the following command: The script below uses **Linux kernel 4.7.6**, **BusyBox 1.24.2** and **Syslinux 6.03**. The source bundles are downloaded and compiled automatically. If you are using [Ubuntu](http://ubuntu.com) or [Linux Mint](http://linuxmint.com), you should be able to resolve all build dependencies by executing the following command:
sudo apt-get install wget bc build-essential gawk genisoimage sudo apt-get install wget bc build-essential gawk xorriso
After that simply run the below script. It doesn't require root privileges. In the end you should have a bootable ISO image named `minimal_linux_live.iso` in the same directory where you executed the script. After that simply run the below script. It doesn't require root privileges. In the end you should have a bootable ISO image named `minimal_linux_live.iso` in the same directory where you executed the script.
@ -39,17 +39,14 @@ After that simply run the below script. It doesn't require root privileges. In t
cp ../syslinux-6.03/bios/core/isolinux.bin . cp ../syslinux-6.03/bios/core/isolinux.bin .
cp ../syslinux-6.03/bios/com32/elflink/ldlinux/ldlinux.c32 . cp ../syslinux-6.03/bios/com32/elflink/ldlinux/ldlinux.c32 .
echo 'default kernel.gz initrd=rootfs.gz' > ./isolinux.cfg echo 'default kernel.gz initrd=rootfs.gz' > ./isolinux.cfg
genisoimage \ xorriso \
-J \ -as mkisofs \
-r \
-o ../minimal_linux_live.iso \ -o ../minimal_linux_live.iso \
-b isolinux.bin \ -b isolinux.bin \
-c boot.cat \ -c boot.cat \
-input-charset UTF-8 \
-no-emul-boot \ -no-emul-boot \
-boot-load-size 4 \ -boot-load-size 4 \
-boot-info-table \ -boot-info-table \
-joliet-long \
./ ./
cd .. cd ..

View File

@ -32,18 +32,15 @@ cd ../isoimage
cp ../syslinux-$SYSLINUX_VERSION/bios/core/isolinux.bin . cp ../syslinux-$SYSLINUX_VERSION/bios/core/isolinux.bin .
cp ../syslinux-$SYSLINUX_VERSION/bios/com32/elflink/ldlinux/ldlinux.c32 . cp ../syslinux-$SYSLINUX_VERSION/bios/com32/elflink/ldlinux/ldlinux.c32 .
echo 'default kernel.gz initrd=rootfs.gz' > ./isolinux.cfg echo 'default kernel.gz initrd=rootfs.gz' > ./isolinux.cfg
genisoimage \ xorriso \
-J \ -as mkisofs \
-r \ -o ../minimal_linux_live.iso \
-o ../minimal_linux_live.iso \ -b isolinux.bin \
-b isolinux.bin \ -c boot.cat \
-c boot.cat \ -no-emul-boot \
-input-charset UTF-8 \ -boot-load-size 4 \
-no-emul-boot \ -boot-info-table \
-boot-load-size 4 \ ./
-boot-info-table \
-joliet-long \
./
cd .. cd ..
set +ex set +ex