Tomas-M / linux-live

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

linux-live: Bundles #233

Closed opselo closed 2 years ago

opselo commented 2 years ago

Hello Tomas, I am a Slax lover since time immemorial. Thank you very much for this hard work.

I have a question, I'm new using linux-live. I have created an ISO with the linux-live (without using scrips of the directory /slax of the repository); ISO starts and works perfectly. It is a Core of Debian 10.13. Now the question:

I speak of CMD after starting, not to modify the behavior of ISO. The ISO was from a fresh installation, without trimming, and executing only the Build.sh (only Zip, Genisoimage and Squash were installed).

Thanks.

equetzal commented 2 years ago

Not Tomas, but this might help to close this issue. Yes, when you use no-slax build scripts you still being able to create a new bundle. You can just use the savechanges script to save the changes. But if you are trying to create your own bundle, take in consideration that the way is which is being compressed might be 'special'. Here you can see how this is being done in the dir2sb script. https://github.com/Tomas-M/linux-live/blob/64247368a633d07f10f1dbef251071a63c19cf5a/Slax/debian11/rootcopy/usr/bin/dir2sb#L47 Now, I would tell you that this exact script (dir2sb) is enough for achieve the task you're looking for. Also, depending on the name you have chosen for you live-kit the directory to put your bundle is //, and remember they're being mounted on the root of your file system.

Also, once you've booted you can look into the /sys/fs/aufs directory to lookup for all the branches mounted. I've also created a tool named 'auls' (for AUFS list) for listing all the current branches (layers) loaded into your filesystem. https://github.com/equetzal/huronOS-build-tools/blob/main/base-system/usrroot/usr/sbin/auls

If there's the case in which your branch stills not being mounted, you'll be needing to debug you initramfs to know the reason why it is not being loaded (probably mount command is failing or something like that).

opselo commented 2 years ago

@equetzal Apparently, this is just i need. Thanks a lot.