You are viewing a single thread.
View all comments View context
3 points

I’ve been struggling to make a bootable iso. I did Linux from scratch and I wanted to boot it in virtual box. I found a sparse amount of info about mkisofs/genisofimage but I couldn’t actually get a successful boot after following a few tutorials.

I have to imagine there are more modern tools for something like this but I didn’t have any luck googling.

Sorry to hijack but it sounds like you might have an answer I need. I just want a way to put together an iso with a bootloader that works in virtual machines. (I’m good with 32bit grub but I’d work with uefi too).

permalink
report
parent
reply
4 points

Would you be fine with some tooling that enables one to make their own custom iso from an existing distro? This path still allows for a substantial amount of freedom, though it’s not a blank slate by any stretch of the imagination. But it makes up for it with how relatively easy and painless it can be.

Or would you instead like to get into the nitty-gritty of things and want all the freedom you’d want? This increased freedom does come with a substantial cost in convenience and labour.

Pick your poison :P . I’ll be waiting ;) .

permalink
report
parent
reply
4 points

Customizing a base distro sounds like a good place to start 👍🏽

permalink
report
parent
reply
4 points

So taking your other comment into consideration as well, I suppose the following would be the easiest good setup:

  1. Install Debian Stable using the image for a minimal network install onto a secondary device or onto a partition of your main device (multi-boot). Make sure to only include the stuff you think you’d need.
  2. Install all of your favorite tools within that Debian Stable installation.
  3. Use the excellent penguins-eggs package to make a live image out of it.
  4. Install the live image onto your favorite USB with whichever tool you like; personally I enjoy using ventoy.
  5. Profit :P .

If my proposed solution doesn’t quite fit your needs, then please feel free to correct me!

permalink
report
parent
reply
2 points
*

Going to try the penguins-eggs method you posted. I would love to be able to turn a virtual box environment into an installable medium to make my own version of debian with all my gnome tweaks.

I would also love a solution that doesn’t require booting into the OS first. So that I can take a root dir and turn it into a bootable iso. I tried a bunch of old tutorials for making a boot.iso and linking it into mkisofs with -b but it never worked.

I am willing to learn/use any free tooling. Not picky at all.

permalink
report
parent
reply
1 point

Going to try the penguins-eggs method you posted. I would love to be able to turn a virtual box environment into an installable medium to make my own version of debian with all my gnome tweaks.

Good choice! The “penguins-eggs method” should fit the bill ;) !

I would also love a solution that doesn’t require booting into the OS first. So that I can take a root dir and turn it into a bootable iso.

Few questions :P :

  1. If I understood you correctly, you mean that all of the files that will make up the bootable iso are contained -presumably under FHS- within a root dir of another distro? Or did you mean it as a partition? Or did you mean any tool that can build your iso from within another system based on (declarative) instructions?
  2. Are we still talking about Debian with all your GNOME tweaks?
  3. Is Debian a hard requirement? Or would you be open to say something like Fedora?
  4. Is Live USB a hard requirement?
  5. Might seem random, but what’s your stance on declarative distros?

I tried a bunch of old tutorials for making a boot.iso and linking it into mkisofs with -b but it never worked.

Small nitpick; I generally recommend using xorriso over mkisofs, the latter is only packaged in most distros as part of xorriso anyways*. While genisoimage does ‘provide’ mksisofs as well, genisoimage is unmaintained and should therefore not be used.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 6.5K

    Monthly active users

  • 6.6K

    Posts

  • 179K

    Comments