LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Not able to edit init script under initrd in centos 7(32 bit) (https://www.linuxquestions.org/questions/linux-newbie-8/not-able-to-edit-init-script-under-initrd-in-centos-7-32-bit-4175585538/)

YogeshJadav 07-26-2016 07:14 AM

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.

Echtap 07-26-2016 07:27 AM

Have you tried checking the ownership/permission of the file?

Quote:

ls -o

offgridguy 07-26-2016 09:58 AM

Welcome to the forum.

ardvark71 07-26-2016 11:10 AM

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...


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