LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-12-2018, 07:55 AM   #1
SriRamaSan
LQ Newbie
 
Registered: Sep 2018
Posts: 11

Rep: Reputation: Disabled
Customized CentOS ISO file


Hi Forum friends,
I am preparing a customized CentOS ISO, in which during installation I want to run my own script.
I had updated the squashfs.img file with all my relevant application and script file my application would need python3.4 and few other packages which makes my Squashfs.img to ~1.0 GB file, but while installing it's not triggered

I added my script in /usr/lib/dracut/modules.d/66xxxxx/ and packed with squashfs.img, its not getting triggered,

how do I ensure this script is triggered, should I do anything in initrd.img for this

Regards
SriRamaSan
 
Old 09-12-2018, 10:44 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
The link may help to create custom iso
https://vittegleo.com/2012/12/12/custom-centos-live-cd/
 
Old 10-09-2018, 06:24 AM   #3
go_tux_yourself
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Rep: Reputation: 1
Without understanding what you custom application does, I don't quite understand the reasoning behind using dracut modules, which afaik is used for configuring system resorces (i.e. udev, mount, ifcfg etc.) versus using something like an init script or systemd unit. But that being said..

Have you tried adding your module to your initrd.img?

/etc/dracut.conf or /etc/dracut.conf.d/*.conf

# Equivalent to -a "my module"
add_dracutmodules+="my module"

or

dracut -a "my module" initrd.img
 
Old 10-13-2018, 11:38 PM   #4
SriRamaSan
LQ Newbie
 
Registered: Sep 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hi all My problem got resolved, I had to ensure /etc/systemd/system/default.target points to target file which points to my service
 
  


Reply

Tags
initrd, squashfs



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
Customized CentOS ISO file SriRamaSan Linux - Newbie 1 09-12-2018 12:17 PM
How to build an ISO of a customized OS? venkateshp4u Linux - Server 3 11-04-2015 11:00 AM
Can I create bootable .iso file after kernel compilation for the customized kernel pranita Linux - Kernel 2 07-31-2014 08:42 PM
Making a customized linux install cd/iso systemlordanubis Linux - Software 6 07-18-2011 08:49 AM
Burning a customized iso image sidra Red Hat 0 10-30-2006 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:48 AM.

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