I'm booting a PXE image on a node that I want to back up with partimage.
I have to detect the disk it uses for it's root. right now I'm guessing
it with the result of this:

sfdisk -d /dev/sd? /dev/hd? /dev/cciss/???? 2>/dev/null | awk 'NR==1 {print 
$(NF)}'

is there a more correct or exact way to deduce this by asking the kernel
what it would boot if PXE was not active?

-- 
Random bits of protein
Ira Abramov
http://ira.abramov.org/email/

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to