LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-15-2023, 09:45 AM   #1
Stijnr
LQ Newbie
 
Registered: Apr 2023
Posts: 3

Rep: Reputation: 0
Create custom Debian installation ISO


I wrote a web ui to manage my home server, this project was just for fun. I'm probably not going to end up actually using it.
But I would like to learn how I could make my own custom debian installer whcih has the web ui installed.
I figured I need to use live-build for this:
lb config --binary-images iso-hybrid --mode debian --architectures amd64 --linux-flavours amd64 --distribution bullseye --archive-areas "main contrib non-free" --updates true --security true --cache true --apt-recommends true --debian-installer live --debian-installer-gui true --win32-loader false

I included the packages that I want and the package with my custom webui.
This all works but there are a couple of things I want to change.
- The debian-installer still has the debian logo, I would like to replace this.
- The grub installation (done by debian-installer) shows the boot options with the name "Debian GNU/Linux". I found out that grub-install has an option bootloader-id to change this. But I have no idea where I could change this inside the debian-installer.

I think I'll need to get the source code of debian-installer and edit it to fit my needs? But I couldn't find 'grub-install' inside that source code
 
Old 04-15-2023, 09:55 AM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,354

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Quote:
The debian-installer still has the debian logo, I would like to replace this.
- The grub installation (done by debian-installer) shows the boot options with the name "Debian GNU/Linux".
edit the grub.cfg file on the iso, I think it will be in boot/grub for uefi boot, for legacy boot it will be a config file in isolinux directory.
 
Old 04-15-2023, 09:59 AM   #3
Stijnr
LQ Newbie
 
Registered: Apr 2023
Posts: 3

Original Poster
Rep: Reputation: 0
That's something I was also thinking of. But the grub.cfg file in the /boot/grub directory has the options to load the installer.
- Live system
- Graphical installer
And those options aren't on the installed system.
 
Old 04-15-2023, 10:32 AM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,354

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Quote:
I found out that grub-install has an option bootloader-id
All this does is change the name of the EFI/debian directory to something else. Grub menuentry options along with the debian logo displayed are controlled by boot/grub/grub.cfg and/or a grub.cfg somewhere in a sub-directory of the efi directory or another .cfg file sourced by the grub.cfg

don't know about the debian installer grubx64.efi, some will have a grub.cfg embedded in the grubx64.efi

Last edited by colorpurple21859; 04-15-2023 at 10:37 AM.
 
Old 04-15-2023, 01:44 PM   #5
Stijnr
LQ Newbie
 
Registered: Apr 2023
Posts: 3

Original Poster
Rep: Reputation: 0
I think I'll just end up writing my own installation script.
When I boot the live-system I can install it onto the hdd using debootstrap.
This would give me more freedom to customize whatever I want.
Once I've made a script for it. Can I make run it automatically when booting the live-system?

Last edited by Stijnr; 04-15-2023 at 02:39 PM.
 
Old 04-15-2023, 05:02 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,354

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Look at config files in /usr/share/live/build/bootloaders/grub-pc, the /usr/lib/live/build/binary_grub_cfg file and the livebuild common config file.

Last edited by colorpurple21859; 04-15-2023 at 05:11 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a custom mate installation package. How to create a installer for debian LinuxMaster1 Debian 4 07-11-2020 01:15 PM
LXer: Microsoft will release a custom Debian Linux. Repeat, a custom Debian Linux for networking LXer Syndicated Linux News 0 03-09-2016 01:50 PM
Creating Custom LiveOS ISO with Custom Files and RPMs niteshadw Red Hat 1 11-06-2012 10:44 AM
Extract ISO to HD, create ISO from Extractions, Boot ISO LemensTS Linux - Software 1 12-28-2010 01:10 PM
Does anyone Know how to open either .iso.rz or these .iso.xdelta,.iso.bz2,.iso.lzma?? maximalred Debian 5 06-09-2004 06:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration