Hi

On Mon, Aug 15, 2005 at 07:10:06PM -0700, Bernard Li wrote:
>    You can run dd off the filesystem of the node being imaged, i.e.
>    /a/bin/dd (when it is mounted)
>    I believe dd was included in busybox/BOEL in the latest development
>    release (3.5.3).
Yes, it was not included in the earlier one that I have: 3.2.3. See
below why I don't seem to need to upgrade though.

Interestingly, though grub-install does not see hda inside the chroot,
dd does! Why this is so is beyond my understanding of the issues
invovled.

I now have a automatic net install with this bit in the master script
after systemconfigurator, before umounting. (Of course I put the hda.mbr
and correct device.map in place somewhere in image:/etc/systemimager/..)

###########################################################################
#   AIMS stuff
#
# Since systemconfigurator --runboot failed (could not see /dev/hda),
# MBR never got installed (due to udev? due to 2.6 kernel?)
#
# Wrong device.map set because boot environment does not see /dev/hda
echo "cp -f /a/etc/systemimager/aims/device.map /a/boot/grub/device.map || 
shellout"
cp -f /a/etc/systemimager/aims/device.map /a/boot/grub/device.map || shellout
#
# MBR not set up
echo "chroot /a/ dd if=/etc/systemimager/aims/hda.mbr of=/dev/hda || shelout"
chroot /a/ dd if=/etc/systemimager/aims/hda.mbr of=/dev/hda || shellout
#
# Note, also had to add devfs=mount to /boot/grub/menu.1st on golden
# client
# udev problem: kernel has no /dev/console to use
#
# Another thing. I does not want /local on the server, wasting space,
# so I exclude it from imaging completely by unmounting before getimage;
# then the FS is not made, and the node bombs out when booting
echo "mke2fs -j /dev/hda7 || shellout"
mke2fs -j /dev/hda7 || shellout
#
###########################################################################

I will still have to change the updateclient script to
1) remount /boot rw
2) update device.map at the end, and put the MBR back in (in case it has
changed).

cheers,
Jan
-- 
   .~.
   /V\     Jan Groenewald
  /( )\    www.aims.ac.za
  ^^-^^


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Sisuite-users mailing list
Sisuite-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to