Re: %include problem in 7.3?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Subject: %include problem in 7.3?


> Ok... so I'm a thrill seeker.... I'm trying to modularize my %post section
> using
> %include so I don't have to edit 6 different kickstart config files every
> time we update our image.
>
> NFS based install. Boot parameters are:
>   ks=nfs:10.1.2.1:/export/kickstart/RedHat_7.3/kickstart/test.cfg
> initrd=initrd.img lang= devfs=nomount ramdisk_size=8192 text
>
> This works fine until I move several lines out of the %post section of
> test.cfg into an include file
(/export/kickstart/RedHat_7.3/kickstart/local)
> and then try to reference it from within the %post section as:
>
>    %include /mnt/source/kickstart/local
>

During installation file system loks like this:
/
 mnt/
    source/      (your 10.1.2.1:/export/kickstart/RedHat_7.3/kickstart/)
    sysimage/    (installed file system; i.e. hda1 or similar)

"%post" does a "chroot" to '/mnt/sysimage' so you can´t access anything
"above".

If you use "%post --nochroot" you can access both 'source/' and 'sysimage/'
but you have to keep in mind that your new installation resides under
'/mnt/sysimage/'.
For instance: '/etc/hosts' is to be accessed via '/mnt/sysimage/etc/hosts'.

HTH,
Juergen






[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux