Legacy server 20.04
Tom H
tomh0665 at gmail.com
Fri Jan 8 21:04:04 UTC 2021
On Mon, Jan 4, 2021 at 4:48 PM Jerry Geis <jerry.geis at gmail.com>
wrote:
> I am trying to get the "%pre" section working in kickstart. I
> just have simple commands there right now and its not working.
>
> %pre
> chroot /target
> echo 1 > /root/pre_working
>
> I get no file.
Do "%pre" and "%post" work in kickseed?
But you can't "chroot" when there's no installation.
Try
echo 1 > /target/pre_working
because "/target/root" doesn't exist yet
> Also - how do I get NFS working in the %post section?
Does "working" mean installing nfs or setting up nfs?
installing - isn't it installed if you have "nfs-kernel-server" in "%packages"?
setting up - if "%post" works, you have to set up "/etc/default/nfs-*"
and "/etc/exports".
More information about the ubuntu-users
mailing list