Skip to content

Commit 7615c1a

Browse files
committed
added tails, parrot, neptune, wmlive and wattOS
1 parent f0e0389 commit 7615c1a

3 files changed

Lines changed: 39 additions & 17 deletions

File tree

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ distroflash.lua has been seen to work with the following distributions. If anyon
9595
* KNOPPIX 8.6.1
9696
* Manjaro 20.1.2
9797
* Memtest86+
98+
* Neptune 8
99+
* ParrotOS 5.3
98100
* Peppermint 10
99101
* PhoenixOS
100102
* PCLinixOS
@@ -111,13 +113,15 @@ distroflash.lua has been seen to work with the following distributions. If anyon
111113

112114
## Finiky, can be made to install
113115

116+
* 4MLinux - destination disk must be /dev/sda
114117
* TinyCorePlus - has to be told path to core.gz to install (see 'Finiky installs' below)
115118
* Puppy Linux slacko 6.3.2 - complex install process (see 'Finiky installs' below)
116119
* Puppy Linux tahr 6.0.5 - complex install process (see 'Finiky installs' below)
117120
* Puppy Linux tahr 6.0.5 - complex install process (see 'Finiky installs' below)
118121
* Salix 14.2 - has to be told to install from harddrive, and given both the device name and path to files on disk
119122
* Calculate Linux - has been seen to install to a vm. Installer has issues with some graphics cards.
120123
* CentOS Linux 8.1 - has been seen to install to a vm. Installer crashes on some hardware.
124+
* WattOS R12 - installer fails if live distro not connected to internet
121125

122126
## Runs live. Might also install from usb to hard-drive if you really know how and the wind is in the right direction
123127

@@ -137,7 +141,8 @@ distroflash.lua has been seen to work with the following distributions. If anyon
137141
* Nst Linux 30-11210 - runs live, but installer refuses to install from mounted usb key
138142
* Puppy Linux xenialpup 7.5 - installs, but installed system doesn't seem to boot
139143
* Slitaz-rolling - installer can't find installation files
140-
144+
* Tails 5 - refuses to install except to usb drives
145+
* WMLive
141146

142147

143148
## Finiky installs

distroflash.conf

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# which is the directory name that the distro will be installed to on disk
55

66
# Distros that work as installers (this is the main focus of distroflash.lua)
7+
8+
79
name="AndroidX86" id="isolinux/android-x86.png" install_type=iso kernel="kernel" initrd="initrd.img" append="iso-scan/filename=$(distdir)/$(isoname) androidboot.selinux=permissive INSTALL=1"
810
name="PhoenixOS" id="cdlabel:Phoenix OS *" install_type=iso kernel="kernel" initrd="initrd.img" append="iso-scan/filename=$(distdir)/$(isoname) androidboot.selinux=permissive INSTALL=1"
911
name="AntiX" id="antiX/vmlinuz" kernel="antiX/vmlinuz" initrd="antiX/initrd.gz" append="bdir=$(distdir)/antiX rootdelay=5 from=usb,cd,hd splasht disable=lxF xorg=safe"
@@ -16,6 +18,8 @@ name="lUbuntu" id="preseed/lubuntu.seed" kernel="casper/vmlinuz" initrd="" appen
1618
name="Manjaro" install_type=iso id="manjaro" kernel="boot/vmlinuz-x86_64" initrd="boot/initramfs-x86_64.img" append="img_dev=UUID:$(uuid) img_loop=$(distdir)/$(isoname) earlymodules=loop misobasedir=manjaro"
1719
name="Memtest86+" install_type=iso id="cdlabel:MT5*" kernel="memdisk" initrd="/$(isoname)" append="iso"
1820
name="Mint" id="preseed/linuxmint.seed" kernel="casper/vmlinuz" initrd="casper.initrd.lz" append="file=$(distdir)/preseed/linuxmint.seed boot=casper xforcevesa ignore_uuid live-media-path=$(distdir)/casper"
21+
name="Neptune" id="cdlabel:Neptune*" install_type=iso kernel="live/vmlinuz" initrd="live/initrd.img" append="boot=live findiso=$(distdir)/$(isoname) hostname=live-pc username=user live-config.user-default-groups=sambashare,cdrom,floppy,audio,dip,video,plugdev,netdev,lpadmin,scanner,bluetooth,adm swap=true apparmor=0 splash noprompt quiet"
22+
name="Parrot" id="live/vmlinuz*parrot*" install_type=iso kernel="live/vmlinuz" initrd="live/initrd.img" append="boot=live components splash findiso=$(distdir)/$(isoname)"
1923
name="PCLinuxOS" id="EFI/BOOT/themes/pclinuxos" kernel="isolinux/vmlinuz" initrd="isolinux/initrd.gz" append="livecd=$(distdir)/livecd nomodeset xdriver=vesa"
2024
name="Peppermint" id="preseed/peppermint.seed" kernel="casper/vmlinuz" initrd="casper/initrd*" append="noprompt cdrom-detect/try-usb=true file=/$(distdir)/preseed/peppermint.seed boot=casper ignore_uuid live-media-path=$(distdir)/casper quiet splash --"
2125
name="Porteus" id="porteus" kernel="boot/syslinux/vmlinuz" initrd="boot/syslinux/initrd*" append="from=$(distdir)"
@@ -28,8 +32,12 @@ name="SparkyLinux" id="live/sparkylinux*" kernel="live/vmlinuz" initrd="live/ini
2832
name="SpinRite" install_type=iso id="SPINRITE.EXE" kernel="memdisk" initrd="/$(isoname)" append="iso"
2933
name="Trisquel" id="preseed/trisquel.seed" kernel="casper/vmlinuz" initrd="casper/initrd" append="file=$(distdir)/preseed/linuxmint.seed ignore_uuid boot=casper live-media-path=$(distdir)/casper --"
3034
name="Knoppix" id="KNOPPIX,boot/isolinux/minirt.gz" kernel="boot/isolinux/linux" initrd="boot/isolinux/minirt.gz" append="knoppix_dir=$(distdir)/KNOPPIX"
31-
name="Ubuntu" id="casper/vmlinuz" kernel="casper/vmlinuz" initrd="casper/initrd" append="file=$(distdir)/preseed/custom.seed boot=casper ignore_uuid live-media-path=$(distdir)/casper"
3235
name="Void" install_type=iso id="boot/grub/grub_void.cfg" kernel=boot/vmlinuz initrd=boot/initrd append="iso-scan/filename=$(distdir)/$(isoname) root=live:LABEL=$(cdlabel)"
36+
name="WattOS" id="cdlabel:wattOS*" install_type=iso kernel="live/vmlinuz" initrd="live/initrd" append="boot=live components splash findiso=$(distdir)/$(isoname)"
37+
38+
39+
#seen to work, though the installer is a bit primative and hard to use
40+
name="4MLinux" id="cdlabel:CDROM*" kernel="live/vmlinuz" initrd="/boot/initrd.gz" append="root=/dev/ram0 vga=normal"
3341

3442

3543
# Distros that have been seen to install, but have issues on some hardware or are difficult to install
@@ -52,8 +60,13 @@ name="Slax" id="slax/boot/vmlinuz" kernel="slax/boot/vmlinuz" initrd="slax/boot/
5260
name="Slitaz" id="boot/vmlinuz-*-slitaz" kernel="boot/bzImage" initrd="" append="initrd=$(distdir)/boot/rootfs4.gz,$(distdir)/boot/rootfs3.gz,$(distdir)/boot/rootfs2.gz,$(distdir)/boot/rootfs1.gz rw root=/dev/null vga=normal autologin"
5361
name="SystemRescueCD" id="sysresccd" kernel="sysresccd/boot/i686/vmlinuz" initrd="sysresccd/boot/i686/sysresccd.img" append="archisobasedir=/$(distdir)/sysresccd archisodevice=/dev/disk/by-uuid/$(uuid)"
5462
name="NST" id="README.nst" kernel="isolinux/vmlinuz0" initrd="isolinux/initrd0.img" append="append root=live:UUID=$(uuid) rootfstype=auto ro liveimg quiet rhgb rd.luks=0 rd.md=0 rd.dm=0 xdriver=vesa nomodeset live_dir=$(distdir)/LiveOS rd.live.image"
63+
name="Tails" id="cdlabel:TAILS*" kernel="live/vmlinuz" initrd="live/initrd.img" append="timezone=Etc/UTC boot=live config live-media-path=$(distdir)/live nopersistent noprompt quiet block.events_dfl_poll_msecs=1000 splash nox11autologin quiet"
64+
name="WMLive" id="cdlabel:wmlive*" kernel="live/vmlinuz" initrd="live/initrd" append="boot=live components live-media-path=/$(distdir)/live"
5565

56-
66+
#fallback 'generic' distrotypes
67+
name="debian-generic" install_type=iso id="live/filesystem.squashfs" kernel="live/vmlinuz" initrd="live/initrd" append="boot=live components findiso=$(distdir)/$(isoname)"
68+
name="Ubuntu" id="preseed/custom.seed" kernel="casper/vmlinuz" initrd="casper/initrd" append="file=$(distdir)/preseed/custom.seed boot=casper live-media=/dev/disk/by-PARTUUID/$(uuid) live-media-path=$(distdir)/casper"
69+
name="casper-generic" id="casper" kernel="casper/vmlinuz" initrd="casper/initrd*" append="cdrom-detect/try-usb=true noprompt boot=casper live-media-path=$(distdir)/casper live-media=/dev/disk/by-PARTUUID/$(uuid) quiet splash --"
5770

5871

5972

@@ -68,15 +81,15 @@ name="NST" id="README.nst" kernel="isolinux/vmlinuz0" initrd="isolinux/initrd0.i
6881
#name="Debian" install_type=iso id="doc/debian-manifesto" append="boot=live findiso=$(distdir)/$(isoname) components quiet splash"
6982
#name="Qubes" id="isolinux/xen.gz" kernel=isolinux/mboot.c32 initrd="" append="xen.gz --- vmlinuz inst.stage2=hd:UUID=$(uuid):/$(distdir) xdriver=vesa nomodeset --- initrd.img"
7083
#name=OpenMandriva id="boot/liveinitrd.img" kernel="boot/vmlinuz0" initrd="boot/liveinitrd.img" append="root=live:UUID=$(uuid) rootfstype=auto ro liveimg rhgb xdriver=vesa nobodeset rd.live.dir=$(distdir)/LiveOS rd.live.image"
71-
#name="4mLinux" id="" kernel="boot/bzImage" initrd="boot/initrd.gz" append="root=/dev/ram0 vga=normal"
7284
#name="openSUSE" install_type=iso id="SUSEgo.png" kernel="boot/i386/loader/linux" initrd="boot/i386/loader/initrd" append="root=live:CDLABEL=openSUSE-Leap-15.3 iso-scan/filename=$(distdir)/$(isoname)"
7385
#name="Freedos", install_type=iso id="freedos" kernel="isolinux/memdisk" initrd="isolinux/fdlive.img"
74-
#name="Debian" install_type=iso id="doc/debian-manifesto" append="boot=live findiso=$(distdir)/$(isoname) components quiet splash"
7586
#name="OpenSUSE" install_type=iso id="SUSEgo.png" kernel="boot/x86_64/loader/linux" initrd="boot/x86_64/loader/initrd" append="root=live:CDLABEL=$(cdlabel) rd.live.image iso-scan=$(distdir)/$(isoname) isofrom_system=$(distdir)/$(isoname)"
7687
#name="BunsenLabs" install_type=iso id="cdlabel:BUNSENLABS*" append="boot=live findiso=$(distdir)/$(isoname) components quiet splash"
77-
#name="Pop OS" id="cdlabel:Pop_OS*" kernel="casper/vmlinuz.efi" initrd="casper/initrd.gz" append="boot=casper ignore_uuid live-media-path=$(distdir)/casper hostname=pop-os username=pop-os noprompt"
7888
#name="Artix" id="cdlabel:ARTIX*" kernel="boot/vmlinuz-x86_64" initrd="boot/initramfs-x86_64.img" append="root=live:UUID=$(uuid) quiet rd.live.ram=1 rd.live.dir=$(distdir)/LiveOS rd.live.image inst.stage2=uuid:UUID=$(uuid)"
7989
#name="Frugalware" id="cdlabel:FVBE*" install_type=iso kernel="boot/vmlinuz" initrd="boot/initrd" append="inst.repo=hd:UUID=$(uuid):/$(distdir)/$(noname) quiet locale.LANG=$locale vconsole.keymap=$layout vconsole.font=ter-v16b $video"
8090
#name="openSUSE" install_type=iso id="SUSEgo.png" kernel="boot/i386/loader/linux" initrd="boot/i386/loader/initrd" append="root=live:CDLABEL=$(cdlabel) iso-scan/filename=$(distdir)/$(isoname)"
8191
#name="Garuda" install_type=iso id="garuda" kernel="boot/vmlinuz-x86_64" initrd="boot/initramfs-x86_64.img" append="img_dev=UUID:$(uuid) img_loop=$(distdir)/$(isoname) earlymodules=loop misobasedir=garuda"
92+
#name="Devuan" install_type=iso id="devuan" kernel="boot/isolinux/linux" initrd="boot/isolinux/preamble.gz" append="vga=788 nomodeset findiso=$(distdir)/$(isoname) initrd=/boot/isolinux/preamble.gz --- quiet"
93+
#name="PureOS" id="cdlabel:PureOS *" kernel="casper/vmlinuz" initrd="casper/initrd*" append="noprompt boot=casper live-media-path=$(distdir)/casper live-media=/dev/disk/by-PARTUUID/$(uuid) quiet splash --"
94+
8295

distroflash.lua

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -289,17 +289,21 @@ distro.root_files={}
289289
distro.cdlabel=ISOGetLabel(path)
290290

291291
mnt="/tmp/.iso_"..process.getpid()
292-
filesys.mkdir(mnt)
292+
if filesys.mkdir(mnt) == true
293+
then
294+
os.execute(Settings.programs["mount"] .. " -oloop,ro '"..path.."' '"..mnt.."'")
293295

294-
os.execute(Settings.programs["mount"] .. " -oloop,ro '"..path.."' '"..mnt.."'")
296+
distro.mnt=mnt.."/"
297+
CategorizeISO(distro)
295298

296-
distro.mnt=mnt.."/"
297-
CategorizeISO(distro)
299+
if distro.kernel == "" then distro.kernel=ISOFindItem(kernel_names, distro.mnt) end
300+
if distro.initrd == "" then distro.initrd=ISOFindItem(initrd_names, distro.mnt) end
298301

299-
if distro.kernel == "" then distro.kernel=ISOFindItem(kernel_names, distro.mnt) end
300-
if distro.initrd == "" then distro.initrd=ISOFindItem(initrd_names, distro.mnt) end
302+
Out:puts("~c"..filesys.basename(path).."~0 DISTRO: ~e"..distro.name.."~0 kernel="..distro.kernel.." initrd="..distro.initrd.." cdlabel="..distro.cdlabel .. "\n")
303+
else
304+
Out:puts("~rERROR:~0 cannot create ISO mount-point " .. path .. "\n")
305+
end
301306

302-
Out:puts("~c"..filesys.basename(path).."~0 DISTRO: ~e"..distro.name.."~0 kernel="..distro.kernel.." initrd="..distro.initrd.." cdlabel="..distro.cdlabel .. "\n")
303307
return distro
304308
end
305309

@@ -487,11 +491,11 @@ local from, to
487491
-- must do this here, in case we reformatted the disk. Every new filesystem has a new uuid.
488492
Settings.DestUUID=PartitionUUID(Settings.InstallDest)
489493

490-
if filesys.mount(Settings.InstallDest, Settings.MountPoint, "vfat") ==true
494+
if filesys.mount(Settings.InstallDest, Settings.MountPoint, "vfat") == true
491495
then
492-
print("mounted: "..Settings.InstallDest.." on "..Settings.MountPoint )
496+
Out:puts("~gmounted:~0 "..Settings.InstallDest.." on "..Settings.MountPoint .. "\n")
493497
else
494-
print("mount failed: "..Settings.InstallDest.." on "..Settings.MountPoint )
498+
Out:puts("~rERROR:~0 mount failed: "..Settings.InstallDest.." on "..Settings.MountPoint .. "\n")
495499
end
496500

497501
end
@@ -650,7 +654,7 @@ end
650654
function InitConfig()
651655
local str
652656

653-
Settings.Version="3.5"
657+
Settings.Version="3.6"
654658
Settings.MountPoint="/mnt"
655659
str=string.gsub(process.getenv("PATH"), "/bin", "/share")
656660
Settings.SyslinuxDir=filesys.find("syslinux", str)

0 commit comments

Comments
 (0)