From fe8d6d2ac0c71df7c4a469b00ef2cc770d4f8f91 Mon Sep 17 00:00:00 2001 From: Tony Agudo Date: Tue, 19 Dec 2017 17:59:37 -0500 Subject: [PATCH 1/7] Replaced genisoimage with xorriso command --- minimal.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/minimal.sh b/minimal.sh index 9e0bf5468..d3a056c98 100755 --- a/minimal.sh +++ b/minimal.sh @@ -32,18 +32,18 @@ cd ../isoimage cp ../syslinux-$SYSLINUX_VERSION/bios/core/isolinux.bin . cp ../syslinux-$SYSLINUX_VERSION/bios/com32/elflink/ldlinux/ldlinux.c32 . echo 'default kernel.gz initrd=rootfs.gz' > ./isolinux.cfg -genisoimage \ - -J \ - -r \ - -o ../minimal_linux_live.iso \ - -b isolinux.bin \ - -c boot.cat \ - -input-charset UTF-8 \ - -no-emul-boot \ - -boot-load-size 4 \ - -boot-info-table \ - -joliet-long \ - ./ +xorriso \ + -as mkisofs \ + -R \ + -r \ + -o ../minimal_linux_live.iso \ + -b isolinux.bin \ + -c boot.cat \ + -input-charset UTF-8 \ + -no-emul-boot \ + -boot-load-size 4 \ + -boot-info-table \ +./ cd .. set +ex From 39c9e14f0e89806668f20c0c4cf9669febd3c2f5 Mon Sep 17 00:00:00 2001 From: Tony Agudo Date: Tue, 19 Dec 2017 18:38:55 -0500 Subject: [PATCH 2/7] Update README.md --- README.md | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index eb7a00b20..181fccc10 100644 --- a/README.md +++ b/README.md @@ -39,18 +39,15 @@ 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/com32/elflink/ldlinux/ldlinux.c32 . echo 'default kernel.gz initrd=rootfs.gz' > ./isolinux.cfg - genisoimage \ - -J \ - -r \ - -o ../minimal_linux_live.iso \ - -b isolinux.bin \ - -c boot.cat \ - -input-charset UTF-8 \ - -no-emul-boot \ - -boot-load-size 4 \ - -boot-info-table \ - -joliet-long \ - ./ + xorriso \ + -as mkisofs \ + -o ../minimal_linux_live.iso \ + -b isolinux.bin \ + -c boot.cat \ + -no-emul-boot \ + -boot-load-size 4 \ + -boot-info-table \ + ./ cd .. Note that this script produces very small live Linux OS with working shell only and no network support. The network functionality has been implemented properly in the [Minimal Linux Live](http://github.com/ivandavidov/minimal) project which is extensively documented and more feature rich, yet still produces very small live Linux ISO image. From 750595a5ce8fb3c2eeb5fd5b8757e9499d19bbec Mon Sep 17 00:00:00 2001 From: Tony Agudo Date: Tue, 19 Dec 2017 18:40:38 -0500 Subject: [PATCH 3/7] Removed unnecessary xorriso options --- minimal.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/minimal.sh b/minimal.sh index d3a056c98..59eeab62f 100755 --- a/minimal.sh +++ b/minimal.sh @@ -34,12 +34,9 @@ cp ../syslinux-$SYSLINUX_VERSION/bios/com32/elflink/ldlinux/ldlinux.c32 . echo 'default kernel.gz initrd=rootfs.gz' > ./isolinux.cfg xorriso \ -as mkisofs \ - -R \ - -r \ -o ../minimal_linux_live.iso \ -b isolinux.bin \ -c boot.cat \ - -input-charset UTF-8 \ -no-emul-boot \ -boot-load-size 4 \ -boot-info-table \ From 5917078c1cd54fa9ebf3e4e579c825e4d9878c51 Mon Sep 17 00:00:00 2001 From: Tony Agudo Date: Tue, 19 Dec 2017 19:01:59 -0500 Subject: [PATCH 4/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 181fccc10..5690362f9 100644 --- a/README.md +++ b/README.md @@ -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: - 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. From a1c7f2998d691a0704ffbd96d3bcbfebe306b509 Mon Sep 17 00:00:00 2001 From: Tony Agudo Date: Tue, 19 Dec 2017 19:04:35 -0500 Subject: [PATCH 5/7] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5690362f9..3be55ceb1 100644 --- a/README.md +++ b/README.md @@ -40,13 +40,13 @@ After that simply run the below script. It doesn't require root privileges. In t cp ../syslinux-6.03/bios/com32/elflink/ldlinux/ldlinux.c32 . echo 'default kernel.gz initrd=rootfs.gz' > ./isolinux.cfg xorriso \ - -as mkisofs \ - -o ../minimal_linux_live.iso \ - -b isolinux.bin \ - -c boot.cat \ - -no-emul-boot \ - -boot-load-size 4 \ - -boot-info-table \ + -as mkisofs \ + -o ../minimal_linux_live.iso \ + -b isolinux.bin \ + -c boot.cat \ + -no-emul-boot \ + -boot-load-size 4 \ + -boot-info-table \ ./ cd .. From 57a3cb6480fe82d7e842a61327153df3e9e1bf69 Mon Sep 17 00:00:00 2001 From: Tony Agudo Date: Tue, 19 Dec 2017 19:16:56 -0500 Subject: [PATCH 6/7] Update minimal.sh --- minimal.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minimal.sh b/minimal.sh index 59eeab62f..f5f3c1e56 100755 --- a/minimal.sh +++ b/minimal.sh @@ -40,7 +40,7 @@ xorriso \ -no-emul-boot \ -boot-load-size 4 \ -boot-info-table \ -./ + ./ cd .. set +ex From 331f3d89d70bb7a4f63a294b7f9e567d12d836a9 Mon Sep 17 00:00:00 2001 From: Tony Agudo Date: Tue, 19 Dec 2017 19:36:28 -0500 Subject: [PATCH 7/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3be55ceb1..e9c922455 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ After that simply run the below script. It doesn't require root privileges. In t -no-emul-boot \ -boot-load-size 4 \ -boot-info-table \ - ./ + ./ cd .. Note that this script produces very small live Linux OS with working shell only and no network support. The network functionality has been implemented properly in the [Minimal Linux Live](http://github.com/ivandavidov/minimal) project which is extensively documented and more feature rich, yet still produces very small live Linux ISO image.