LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 08: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, 08: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, 10:58 AM   #3
offgridguy
Senior Member
 
Registered: Nov 2015
Location: Alberta Canada
Distribution: Windows10, Debian
Posts: 1,111

Rep: Reputation: 147Reputation: 147
Welcome to the forum.
 
Old 07-26-2016, 12:10 PM   #4
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: Oregon, USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 5,149
Blog Entries: 3

Rep: Reputation: 687Reputation: 687Reputation: 687Reputation: 687Reputation: 687Reputation: 687
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 04:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration