i got it to boot into a snapshot finally
[root@store-lan1-141 stateless]# ./stateless-bootstrap.py -r
/reserve-root -b /reserve-boot
relabelling /dev/hda3 to "RESERVE_ROOT"
relabelling /dev/hda5 to "RESERVE_BOOT"
Mounting /dev/hda3 at /tmp/tmpwBVP-y/reserve_root (type ext3)
Could not determine client snapshot information for active root
partition
Could not determine client snapshot information for reserve root
partition
Mounting /dev/hda5 at /tmp/tmpwBVP-y/reserve_boot (type ext3)
Could not determine client snapshot information for active boot
partition
Could not determine client snapshot information for reserve boot
partition
Provisioning data from server:(config "pinab", protocol "None",
snapshot
"pinab-1")
Getting (config "pinab", protocol "None", snapshot
"pinab-1") to device
/dev/hda3
rsync url:"rsync://cms.porchlight.ca/stateless/pinab/pinab-1/"
excluding /boot
########################################(100%) [Copying system
image]rsync finished
role finished
########################################(100%) [Copying kernel
image]Getting (config "pinab", protocol "None", snapshot
"pinab-1") to
device /dev/hda5
rsync url:"rsync://cms.porchlight.ca/stateless/pinab/pinab-1/boot/"
rsync finished
role finished
########################################(100%) [Preparing
bootloader]relabelling /dev/hda2 to "RESERVE_ROOT"
relabelling /dev/hda3 to "/"
relabelling /dev/hda1 to "RESERVE_BOOT"
relabelling /dev/hda5 to "/boot"
Unmounting /tmp/tmpwBVP-y/reserve_boot
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.95 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the
possible
completions of a device/filename.]
grub> root (hd0,4)
Filesystem type is ext2fs, partition type 0x83
grub> install (hd0,4)/grub/stage1 d (hd0) (hd0,4)/grub/stage2 p
(hd0,4)/grub/grub.conf
Error 22: No such partition
grub> ########################################(100%) [Copying
complete ]
although grub is now looking for /dev/hda4
my hacks:
in replicator.py:
devices = ['/dev/hda1', '/dev/hda2', '/dev/hda3',
'/dev/hda5'] # FIXME
and
rsync_url = "rsync://cms.porchlight.ca/stateless/%s/%s/" % (
provisioning.config_name,
provisioning.snapshot_name)
in ks-bootstrap.cfg:
cd /usr/share/stateless
chmod +x stateless-bootstrap.py
rm replicator.py
wget
http://cms.porchlight.ca/stateless/replicator.py
./stateless-bootstrap.py -r /reserve-root -b /reserve-boot
Peter Schobel
~
On Tue, 2004-11-23 at 02:57, Mark McLoughlin wrote:
On Mon, 2004-11-22 at 19:43 -0500, Peter Schobel wrote:
> i tried changing line 304 in replicator.py to
>
> devices = ['/dev/hda1', '/dev/hda2', '/dev/hda3',
'/dev/hda5'] # FIXME
>
> and now i am just getting
>
> [root@store-lan1-141 stateless]# ./stateless-bootstrap.py -r
> /reserve-root -b /reserve-boot
> ( 0%) [Error ]
>
Try changing:
def debug_print(msg):
pass
to
def debug_print(msg):
print msg
in replicator.py and passing --debug to stateless-bootstrap.py and see
what that tells you.
Cheers,
Mark.
--
#########################
# ##
######################### #
# Peter Schobel # #
# Network Administrator # #
# Porchlight.ca # #
# Unlimited Internet # #
#
www.porchlight.ca ##
#########################