Forcing a disk rescan after %pre

Pablo Iranzo Gómez Pablo.Iranzo at redhat.com
Thu Oct 2 11:18:39 UTC 2008


	Dag, I think that I was able to detect MD devices created after %pre
(on VT2), so would be an option to create an MD device over your newly
created sda ?

	Regards
	Pablo


El jue, 02-10-2008 a las 13:13 +0200, Dag Wieers escribió:
> On Thu, 2 Oct 2008, Paul Malinowski wrote:
> 
> > Try to use partprobe to re-read available disks/partitions. I'm not 
> > sure is it available when %pre script runs, but anaconda does that 
> > somehow during the partitioning section so I guess it's possible. In the 
> > worst case scenario I would add reboot at the end of creation of raid 
> > config in the %pre script - so that it would reboot if change in config 
> > occured. I know that its rather a nasty hack, not a proper solution, but 
> > please keep in mind that anaconda has some limits.
> 
> The reboot is what I am planning to do, but I prefer to look first at a 
> better option instead of settling for this because I don't know better :-)
> 
> I fear that anaconda's data-structure is not updated and the scan for 
> disks has already happened before the %pre. Because after my RAID scripts 
> has run, I do have /dev/sda available to the system, but anaconda behaves 
> as if there were no disks found.
> 
-- 

Pablo Iranzo Gómez (Pablo.Iranzo at redhat.com)
RHCE/RHCSP/RHCSS Global Profesional Services Consultant Spain
Phone: +34 645 01 01 49 (CET/CEST)
GnuPG KeyID: 0xFAD3CF0D

--
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B-82 65 79 41
Directores: Michael Cunningham, Charlie Peters y David Owens
Dirección Registrada: Red Hat S.L., C/ Velazquez 63, Madrid 28001, España
Dirección contacto: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, Planta 3ºD, 28016 Madrid, Spain


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Esta parte del mensaje est? firmada	digitalmente
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20081002/000076ff/attachment.sig>


More information about the Kickstart-list mailing list