Skip to content

Commit bf6d2fe

Browse files
author
Root User
committed
Fix bug that prevented install of syslinux bootloader. Added AntiX and MX Linux distros
1 parent 77b1c38 commit bf6d2fe

3 files changed

Lines changed: 17 additions & 8 deletions

File tree

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ distroflash.lua has been seen to work with the following distributions. If anyon
7676

7777
## Perfect, runs live and installs from live environment
7878

79+
* AntiX Linux 19
80+
* MX Linux 19.1
7981
* Bodhi Linux 5.0.0
8082
* Trisquel-mini 8.0
8183
* Linux Mint 19.3
@@ -88,16 +90,16 @@ distroflash.lua has been seen to work with the following distributions. If anyon
8890

8991
## Finiky, can be made to install
9092

91-
* Salix 14.2 - has to be told to install from harddrive, and given both the device name and path to files on disk
92-
* Slax 9.11.0 - no automated installer, apparently can be installed from live by copying files manually
93-
* Gentoo - no automated installer, apparently can be installed manually from live
93+
* Salix 14.2 - has to be told to install from harddrive, and given both the device name and path to files on disk
94+
* Slax 9.11.0 - no automated installer, apparently can be installed from live by copying files manually
95+
* Gentoo - no automated installer, apparently can be installed manually from live
96+
* Damn Small Linux 4.4.10 - difficult to use installer, not had a successful install from it yet, but it may work.
9497

9598
## Live environment only
9699

97100
* Kali Linux 2020.1
98101
* Clonezilla
99102
* Fatdog Linux 721
100-
* Damn Small Linux 4.4.10
101103
* Puppy Linux slacko 6.3.2 - installs, but installed system doesn't seem to boot
102104
* Puppy Linux tahr 6.0.5 - installs, but installed system doesn't seem to boot
103105
* Puppy Linux xenialpup 7.5 - installs, but installed system doesn't seem to boot

distroflash.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
# "append" is the boot parameters. This can include the variable '$(distdir)'
44
# which is the directory name that the distro will be installed to on disk
55

6+
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"
67
name="Clonezilla" id="Clonezilla-Live-Version" kernel="live/vmlinuz" initrd="live/initrd.img" append="live-media-path=/$(distdir)/live boot=live union=overlay username=user config components noswap edd=on nomodeset nodmraid noeject locales= keyboard-layouts= ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no ip= nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1 vga=791"
8+
name="Damn Small Linux" id="boot/isolinux/linux24" kernel="boot/isolinux/linux24" initrd="boot/isolinux/minirt24.gz" append="ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 knoppix_dir=/$(distdir)/KNOPPIX"
79
name="Gentoo" id="isolinux/gentoo" kernel="isolinux/gentoo" initrd="isolinux/gentoo.xz" append="init=/linuxrc looptype=squashfs loop=/$(distdir)/image.squashfs cdroot subdir=$(distdir) console=tty1"
810
name="Kali" id="dists/kali-last-snapshot" kernel="live/vmlinuz" initrd="live/initrd.img" append="boot=live components splash hostname=kali live-media-path=/$(distdir)/live"
911
name="lUbuntu" id="preseed/lubuntu.seed" kernel="casper/vmlinuz" initrd="" append="file=$(distdir)/preseed/lubuntu.seed boot=casper ignore_uuid only-ubiquity initrd=$(distdir)/casper/initrd live-media-path=$(distdir)/casper"

distroflash.lua

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ end
255255

256256
function SetupDest()
257257
local devname, devtype, removable, mounted
258+
local from, to
258259

259260
--diskname is the name of the parent disk for a destination. For disk destinations devname and diskname will
260261
--be the same. For partitions, for example /dev/sda1, devname=sda1 and diskname=sda
@@ -288,7 +289,11 @@ local devname, devtype, removable, mounted
288289
Settings.Format=true
289290
end
290291

291-
filesys.copy(Settings.SyslinuxDir .."/".. Settings.SyslinuxMBR, "/dev/"..diskname)
292+
from=Settings.SyslinuxDir .."/".. Settings.SyslinuxMBR
293+
to="/dev/"..diskname
294+
print("install mbr: ".. from.. " to "..to)
295+
filesys.copy(from, to)
296+
292297
Settings.tmpMount=("/tmp/.usb_install_"..tostring(process.pid()))
293298
filesys.mkdir(Settings.tmpMount)
294299
Settings.MountPoint=Settings.tmpMount
@@ -415,15 +420,15 @@ item=toks:next()
415420
while item ~= nil
416421
do
417422
print("Install Syslinux: "..item)
418-
filesys.copy(Settings.SyslinuxDir..item, Settings.MountPoint.."/boot/"..item)
423+
filesys.copy(Settings.SyslinuxDir.."/"..item, Settings.MountPoint.."/boot/"..item)
419424
item=toks:next()
420425
end
421426
end
422427

423428

424429
function ActivateSyslinux()
425430
print("Activate syslinux")
426-
str=Settings.programs["syslinux"] .. " -m --install -d /boot "..Settings.InstallDest
431+
str=Settings.programs["syslinux"] .. " --install -d /boot "..Settings.InstallDest
427432
os.execute(str)
428433
print("Activated: "..str)
429434
end
@@ -432,7 +437,7 @@ end
432437
function InitConfig()
433438
local str
434439

435-
Settings.Version="1.0"
440+
Settings.Version="1.1"
436441
Settings.MountPoint="/mnt"
437442
str=string.gsub(process.getenv("PATH"), "/bin", "/share")
438443
Settings.SyslinuxDir=filesys.find("syslinux", str)

0 commit comments

Comments
 (0)