Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Kickstart installation - adding commands available at 'pre' time

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

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Postfix issues with spam/auth attempts under NAT 9 112
LINUX backups with VEEAM 8 119
Linux Real Time Memory on Distinct 24 Cycle 7 29
php56-php-mcrypt for rhel7 php56 1 52
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

860 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