mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-12-22 05:35:26 +00:00
packagekit-cached-metadata.ks: Adapt for livemedia-creator changes
Now that F24 images are made with livemedia-creator instead of livecd-creator, the kickstart parser has changed; the new kickstart parser doesn't understand the $INSTALL_ROOT variable we'd been using in %post --nochroot scripts. This commit fixes this by replacing $INSTALL_ROOT usage with hardcoded /mnt/sysimage as docs suggest. While at this, this commit also fixes a case where resolv.conf would be incorrectly copied if it is a symlink, thanks to dgilmore for pointing this out.
This commit is contained in:
parent
8df2ac9a00
commit
1c9fefa186
@ -3,7 +3,7 @@
|
|||||||
%post --nochroot
|
%post --nochroot
|
||||||
# Copy over files needed for networking inside the chroot
|
# Copy over files needed for networking inside the chroot
|
||||||
for f in /etc/resolv.conf /etc/hosts ; do
|
for f in /etc/resolv.conf /etc/hosts ; do
|
||||||
test -f $f && cp -a $f ${INSTALL_ROOT}${f}.kickstart
|
test -f $f && cp $f /mnt/sysimage/$f.kickstart
|
||||||
done
|
done
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user