hi,

once a raid system has been restored, the following post-nuke script is needed 
to update uuid in initrd images.

I can't think of a better way to achieve this. maybe you do ?

cheers,
guillaume pernot

=======

#!/bin/sh

mount -t proc none $1/proc

echo >$1/tmp/reconfigure-kernels "#!/bin/sh
dpkg -l kernel-image\* | grep ^ii |\
while read status pkg junk ; do
        dpkg-reconfigure $pkg
done
"

[ -f /tmp/mdadm.conf ] && cp /tmp/mdadm.conf $1/etc/mdadm/

chroot $1 sh /tmp/reconfigure-kernels

umount $1/proc


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to