hello,

i have cobbler kickstart a machine, partition, format and install os on
sda1 like so:
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto"
clearpart --all --initlabel
zerombr
part / --ondisk=sda --fstype="ext4" --asprimary --size=40000


then, in a postinstall snippet, i make a new partition on the same disk,
sda3, with parted:
/sbin/parted -a optimal /dev/sda --script -- mkpart primary 42000 42001
/sbin/parted -a optimal /dev/sda --script -- mkpart primary 42002 100%


then, i run:
/sbin/partprobe
echo 1 > /sys/block/sda/device/rescan


but, nonetheless, when i go to format sda3 (later in the same postinstall
snippet), the os doesn't see it.  i need to reboot to make it known to the
os.  this is annoying, as i want to perform some operations on that
partition before postinstall completes.


anyone have suggestions for getting the OS to successfully reread the
partition table on a disk with an already mounted partition?




-- 
robert joseph, (m) 415-516-0548
production operations @ foursquare
foursquare is hiring! foursquare.com/jobs
_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler

Reply via email to