this post was submitted on 19 May 2025
10 points (85.7% liked)

Linux

10494 readers
57 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
 

Let's say I had a project that required me to have some files as well as a Live CD for Linux. Could I add the files to my bootable image and access them in the live session?

top 4 comments
sorted by: hot top controversial new old

Yes, but the fact that you're asking probably means you wouldn't want to go that route because it's complicated.

Since the images are built to be a static size and dimension, you'd need to: take an existing image you like, decompile the boot settings into their different parts, edit them, add your files to the base storage, compile a boot image based on the resulting set of files, create united again, recombile the base image, and package that up and HOPE it works the first time, or else youretin a debug loop.

OR

Just boot a LiveCD and have another storage device mounted along with it. That can either be a separate named partition on the bootable media, or a separate one that gets mounted at boot at an expected location.

The latter option is much, much easier.

[–] catloaf@lemm.ee 5 points 4 days ago

Yes, but it's complicated. The easier thing to do would be to make a live USB image, then copy the files to the drive.

For a CD, you could add the files to the iso image, then access them on the disc after booting.

If you want them on the live system's filesystem itself, it's more complicated and probably not worth the effort. But you'd have to unpack and repack the system image inside the iso. Or maybe just run the iso build process to create your iso from scratch.

[–] HayadSont@discuss.online 2 points 3 days ago
[–] hendrik@palaver.p3x.de 0 points 4 days ago

I think there are (have been?) tools for this like Remastersys, Pinguy Builder, Respin... Though a lot of them don't seem to be active any more.