Solved

Kickstart installation - adding commands available at 'pre' time

Posted on 2004-08-10
2
454 Views
Last Modified: 2013-12-15
I'm currently building a kickstart cd, and it's all ready to go except...the script I'm using in the 'pre' section needs to commands (bc and expr), that arn't available by default in the stage2.img file.
Everything I've read tells me to just mount the file, add the commands I need, and all will be fine.
Whilst I can mount the img file, it appears to be mounted in a read-only mode, so whenever I try and add the commands to it, I'm just getting the 'permission denied' error:

# mount -o loop stage2.img j
# touch j/test
touch: creating `j/test': Permission denied
# umount j
# mount --o loop,rw stage2.img j
# touch j/test
touch: creating `j/test': Permission denied
#

mount does show the image file being mounted read/write:
/tmp/j/stage2.img on /tmp/j/j type cramfs (rw,loop=/dev/loop0)

Anyone got any bright ideas on how to add these commands to the img file?
500 points on offer, 'coz my new servers are due to arrive in about 3 hours or so, and I want to start getting linux installed as soon as possible!
0
Comment
Question by:j_dyer
2 Comments
 
LVL 6

Accepted Solution

by:
de2Zotjes earned 500 total points
ID: 11761369
Cramfs file systems are read only by nature.

There is a tool mkcramfs that creates a cramfs file.

What you would do is mount the original image. Copy the contents to an empty subdir elsewhere in the dir-tree. Add the stuff you want in the image and then mkcramfs <subdir> <filename>
0
 
LVL 2

Author Comment

by:j_dyer
ID: 11762998
Thanks for the fast response - worked fine.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now