Re: Re: %post and mounting

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

 



Aaron --

...and then aaron.mcsorley@xxxxxxx said...
% you could also run %post with nochroot
%  %post --nochroot

Ah!  So it runs under a new root.  No wonder things were so confusing :-)


% 
% then your source is at /mnt/source
% and your installed system is at /mnt/sysimage
%   cp /mnt/source/foo.bar /mnt/sysimage/home/test
% 
% of course this is only useful if your doing a network install
%  and the files you want are in or linked to your source install tree on your
% server
% also any commands you want to run on your installed system will need to be
%  chroot  i.e.
%    chroot /mnt/sysimage useradd foo

So I could lose the chroot as you say and then run

  chroot /mnt/sysimage chkconfig telnet on

to turn telnet back on, right?


Thanks a bunch!

:-D
-- 
David T-G                       * It's easier to fight for one's principles
(play) davidtg@xxxxxxxxxxx      * than to live up to them. -- fortune cookie
(work) davidtgwork@xxxxxxxxxxx
http://www.bigfoot.com/~davidtg/        Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgp90YIH8M1zi.pgp
Description: PGP signature


[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