[Server-devel] RFH: Script to make installable USB stick

Jerry Vonau jvonau at shaw.ca
Mon Sep 1 03:58:25 EDT 2008


Martin Langhoff wrote:
> On Mon, Sep 1, 2008 at 6:53 PM, Jerry Vonau <jvonau at shaw.ca> wrote:
>>>>> http://www.archivum.info/anaconda-devel-list@redhat.com/2008-05/msg00016.html
>>>>> I'm around for a couple of hours,
>>> See the usb based install thread.
>> I'm going to have to take some of that back, just checked anaconda's git,
>> tree-based sources have been re-enabled for harddrive installs if preupgrade
>> is passed, but that is for F10.
> 
> I'm not following you 100% here :-/
> 

Right now, only repos in .iso files work with anaconda's harddrive 
option (iso-based), tree-based removes the need to wrap the repo in an 
iso, the repo lives in a directory directly on the drive, and can be 
updated as need.


>> Space saving of about 6.5% with the rpms on a squash filesystem, is that
>> worth it?
> 
> Ho-hum...6.5% and a good long wait when you're building it? ;-)
>

Not really, didn't time it, about 45-60secs, 450megs.

> I think it is handy to have the rpms in the uncompressed usb stick -
> it automounts and you can be reading/installing the rpms straight
> away.
> 
To script that, first you need a mount point, and a repo file.

There is something up with the usbmount pkg, I had strange behavior 
under F9 with the XS version, my usbkey came up as sdb, not sdb1 as 
expected.

Aug 30 03:59:37 schoolserver yum: Installed:
usbmount-0.15.6.olpc-1.xs7.noarch
Aug 30 10:14:22 schoolserver usbmount[11606]: executing command: mount
-tvfat -osync,noexec,nodev,noatime /dev/sdb /media/usb0
Aug 30 10:14:23 schoolserver usbmount[11606]: executing command:
run-parts /etc/usbmount/mount.d
Aug 30 10:46:23 schoolserver usbmount[12082]: executing command: mount
-tvfat -osync,noexec,nodev,noatime /dev/sdb /media/usb0
Aug 30 10:46:23 schoolserver usbmount[12082]: executing command:
run-parts /etc/usbmount/mount.d

  rpm -e usbmount

Aug 30 10:54:30 schoolserver usbmount[12655]: executing command: mount
-tvfat -osync,noexec,nodev,noatime /dev/sdb1 /media/usb0
Aug 30 10:54:30 schoolserver usbmount[12655]: executing command:
run-parts /etc/usbmount/mount.d
Aug 30 10:57:40 schoolserver usbmount[12754]: executing command: mount
-tvfat -osync,noexec,nodev,noatime /dev/sdb1 /media/usb0
Aug 30 10:57:40 schoolserver usbmount[12754]: executing command:
run-parts /etc/usbmount/mount.d

> Shedding X seems more fun, but up to you. I'm slaving away with the
> little details of teh network...
> 

At this point in the game there is little point in trying, you have F7 
machines in the field that have some X stuff installed already and need 
to have the newer X rpms available to be able to upgrade, or remove the 
extra packages that are installed before upgrading. Slimming down of X 
can only be done on a fresh install.

Jerry







More information about the Server-devel mailing list