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 - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2016, 07:14 AM   #1
YogeshJadav
LQ Newbie
 
Registered: Jul 2016
Posts: 1

Rep: Reputation: Disabled
Not able to edit init script under initrd in centos 7(32 bit)


Hi all,

I am trying to edit init script under initrd image, But I am not able to edit it.

I followed below steps :

mkdir /tmp/initrdmount
# Copied the image from the centos 7.2(32 bit) source code and uncompressed -->\CentOS-7-i386-Everything-1511\isolinux\initrd
cp Desktop\CentOS-7-i386-Everything-1511\isolinux\initrd.img /tmp/initrd.img.gz
gunzip -v /tmp/initrd.img.gz

cd /tmp/initrdmount
cpio -i < /tmp/initrd.img

Under /tmp/initrdmount --> init script available.
I am not able to view/edit this file.

If any one have any Idea then Please help or give suggestion to edit init script. It will help me lot.

Thanks in advance.
 
Old 07-26-2016, 07:27 AM   #2
Echtap
LQ Newbie
 
Registered: Jul 2016
Distribution: Debian
Posts: 14

Rep: Reputation: Disabled
Have you tried checking the ownership/permission of the file?

Quote:
ls -o
 
Old 07-26-2016, 09:58 AM   #3
offgridguy
Senior Member
 
Registered: Nov 2015
Location: Alberta Canada
Distribution: Windows10, Debian
Posts: 1,109

Rep: Reputation: 147Reputation: 147
Welcome to the forum.
 
Old 07-26-2016, 11:10 AM   #4
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Hello and welcome to the forum

Please note that this forum is for introductions only. I have requested a moderator move this thread to an appropriate forum.

Regards...
 
  


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
centos init.d script PIPESTATUS gillecaluim Linux - Newbie 1 10-10-2014 12:18 PM
Changing the init script of an initrd is not seemingly working amishera Linux - Newbie 1 05-07-2013 04:00 PM
How do I edit an init.d script after chkconfig --add ? dadoprso Linux - Server 3 10-18-2012 05:43 PM
[SOLVED] init script, centos/rhel, lighttpd, specify user s2cuts Linux - General 2 10-02-2009 07:31 PM
CentOS 4 (Fedora Core) init script - create PID file cejennings_cr Linux - Newbie 1 07-10-2006 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:35 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