2

I'm working on a project to customize an ubuntu desktop iso to add/remove packages and eventually have it boot to RAM. Here is my overall idea.

  • Create a custom OS that can be flashed into a USB and used to boot a target machine
  • Once booted, run a script that creates a persistent partition in my hard disk and copy the iso to the partition
  • Every single boot after running the script, shall use the image in the partition and boot to RAM.
  • While booting, installation should happen automatically.

Background

I was able to achieve the above mentioned functionality in Debian stretch and I thought it will be fairly straightforward and tried to reuse the scripts for Ubuntu. No surprise, I was wrong. Then I started to reach out online. Learnt and tried the following steps.

What I'm looking for?

  • I understood how to customize Ubuntu by unpacking it, changing root and installing packages - I'm capable of accomplishing this.
  • Run through installation unattended by modifying preseed file - No issues
  • During every boot, the OS present in the a hard disk persistent partition must be copied to RAM - Tried a lot, no avail. Also, this may be related to grub.cfg and isolinux/txt.cfg. Not sure.

I'm sure, I'm doing something blatantly wrong. Please forgive me if I come across as a dumb person. I may not be using jargons appropriately. Also, I can improve this question and give more information based on what you are asking. I had to start somewhere! Thank you

Edits

Based on the comments, I tried the following. Please note, I'm using cubic.

  • Boot options directory looks like the following:

enter image description here

  • Unedited boot/grub/grub.cfg looks like the following:

enter image description here

  • My modification:

enter image description here

  • Unmodified isolinux/txt.cfg looks like the following and I erased all contents inside:

enter image description here

  • Unfortunately, this was my output:

enter image description here

I'm super confused as to what files to modify. I'm not able to understand when the isolinux is used and when grub.cfg is used. Do I have to modify both the same way ? Can someone help me out on this please ?

0 Answers0