Editing the x86 mini root

The x86 mini-root is a gzip compressed UFS file system so if you find you need to edit it, to replace a file or edit /etc/system or any other thing here is how.

First make sure you are on an x86 system. UFS is not endian neutral.

# gunzip < boot/x86.miniroot > /tmp/mr.$$
# mount $(lofiadm -a /tmp/mr.$$) /mnt

Now edit your files under /mnt.

# umount /mnt
# lofiadm -d  /tmp/mr.$$
# gzip <  /tmp/mr.$$ > boot/x86.miniroot

Korn shell assumed in the above.

Tags:

Comments:

There's an easier way of doing it with /boot/solaris/bin/root_archive pack|unpack

Posted by Andrei Dorofeev on April 11, 2006 at 11:03 AM BST #

Post a Comment:
Comments are closed for this entry.
About

This is the old blog of Chris Gerhard. It has mostly moved to http://chrisgerhard.wordpress.com

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today