Solved

Kickstart installation - adding commands available at 'pre' time

Posted on 2004-08-10
2
463 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Virtualizing very old guest OS 4 95
Backup & Restore 3 54
android secure ftp 3 33
how to print sub line with  sed /awk /perl in bash file 11 23
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Fine Tune your automatic Updates for Ubuntu / Debian
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.

808 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