Tomas-M / linux-live

Linux Live Kit
http://www.linux-live.org/
1.01k stars 252 forks source link

Confused on the installing script/Persistance issues (Solved) #148

Closed NoozAbooz closed 3 years ago

NoozAbooz commented 3 years ago

Hello! I'm just a little bit confused on the readme. What does it mean by installing when you run the bootinst.sh script? Does it let you choose which device to install to? Currently I want to be able to flash a ISO to a USB stick, and then be able to run a bash file and be able to choose a device (like a hard drive on the PC or the current USB stick) to install the OS to, and enable persistance.

Tomas-M commented 3 years ago

You cannot flash ISO to your USB stick, it won't work. You need to unpack its contents to your USB stick, as like if the ISO was a ZIP archive for example. There are tools for that. The bootinst script has one purpose: to make the USB stick bootable. You must run the bootinst script from your USB device, it sets up the device you are running it from. It automatically detects which device you are starting it from and it makes that device bootable (in simple terms that means, if modifies first few bytes of the partition)

NoozAbooz commented 3 years ago

You cannot flash ISO to your USB stick, it won't work. You need to unpack its contents to your USB stick, as like if the ISO was a ZIP archive for example. There are tools for that. The bootinst script has one purpose: to make the USB stick bootable. You must run the bootinst script from your USB device, it sets up the device you are running it from. It automatically detects which device you are starting it from and it makes that device bootable (in simple terms that means, if modifies first few bytes of the partition)

Ohhh ok. Do you know any ways to install the OS to be persistant after booting it then? Like would https://calamares.io/ work?

Tomas-M commented 3 years ago

It should become persistent as soon as you create /linux/changes directory on your boot media

NoozAbooz commented 3 years ago

It should become persistent as soon as you create /linux/changes directory on your boot media

How? I distribute my os with a iso, so which step do I add it in? When I generate the folder with Linux live before then making the iso?

Tomas-M commented 3 years ago

Well, the directory should be created automatically in the ISO https://github.com/Tomas-M/linux-live/blob/master/build#L45

So if your user copies the contents of the ISO to an USB disk, it should be copied too

NoozAbooz commented 3 years ago

Well, the directory should be created automatically in the ISO https://github.com/Tomas-M/linux-live/blob/master/build#L45

So if your user copies the contents of the ISO to an USB disk, it should be copied too

Hmm, well if it's already created when it's flashed then why doesn't my files save on reboot? Does it have to do with how I install it to my USB stick? I currently use YUMI: https://www.pendrivelinux.com/yumi-multiboot-usb-creator/.

NoozAbooz commented 3 years ago

So I tried copying the contents of the zip to my USB and everything boots. The changes folder still exists, but none of my edited files persist on reboot still.

Tomas-M commented 3 years ago

Can you upload your ZIP somewhere? Eg. sharegorilla.com So I could test it myself

NoozAbooz commented 3 years ago

I uploaded a ISO generated from the same files as the zip a while ago: https://transfer.sh/17FgSBX/linux-x86_64.iso

NoozAbooz commented 3 years ago

Can you upload your ZIP somewhere? Eg. sharegorilla.com So I could test it myself

Hello! I did a little research and got persistence working on my debian based OS. I just needed to add slax.flags=perch,automount to the end of the line with all the arguments in /linux/boot/syslinux.cfg and /EFI/Boot/syslinux.cfg! You could add this to the readme.

Tomas-M commented 3 years ago

Ah, I forgot to mention this, I am sorry! You should be fine with just adding "changes,automount" to the boot parameters, no need for slax.flags= prefix

NoozAbooz commented 3 years ago

Oo ok