mirror of
https://pagure.io/fedora-kickstarts.git
synced 2025-12-09 00:20:31 +08:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26be0f2d85 | ||
|
|
6553b85eba | ||
|
|
015e301b25 | ||
|
|
e77c443079 | ||
|
|
3fd7e8b009 | ||
|
|
8909332a6d | ||
|
|
ee920bfa1f | ||
|
|
e11de770d0 | ||
|
|
f85bbb10ee | ||
|
|
0ef56672f7 | ||
|
|
15e9749cd4 |
@@ -23,7 +23,7 @@ systemctl mask cloud-init cloud-init-local cloud-config cloud-final
|
||||
|
||||
# Vagrant setup
|
||||
sed -i 's,Defaults\\s*requiretty,Defaults !requiretty,' /etc/sudoers
|
||||
echo 'vagrant ALL=NOPASSWD: ALL' > /etc/sudoers.d/vagrant-nopasswd
|
||||
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/vagrant-nopasswd
|
||||
sed -i 's/.*UseDNS.*/UseDNS no/' /etc/ssh/sshd_config
|
||||
mkdir -m 0700 -p ~vagrant/.ssh
|
||||
cat > ~vagrant/.ssh/authorized_keys << EOKEYS
|
||||
|
||||
@@ -32,14 +32,23 @@ volgroup atomicos pv.01
|
||||
logvol / --size=3000 --fstype="xfs" --name=root --vgname=atomicos
|
||||
|
||||
# Equivalent of %include fedora-repo.ks
|
||||
ostreesetup --nogpg --osname=fedora-atomic --remote=fedora-atomic --url=https://kojipkgs.fedoraproject.org/compose/atomic/25/ --ref=fedora-atomic/25/x86_64/docker-host
|
||||
ostreesetup --nogpg --osname=fedora-atomic --remote=fedora-atomic --url=https://kojipkgs.fedoraproject.org/atomic/25/ --ref=fedora-atomic/25/x86_64/updates/docker-host
|
||||
|
||||
reboot
|
||||
|
||||
%post --erroronfail
|
||||
# See https://github.com/projectatomic/rpm-ostree/issues/42
|
||||
ostree remote delete fedora-atomic
|
||||
ostree remote add --set=gpg-verify=false fedora-atomic 'https://dl.fedoraproject.org/pub/fedora/linux/atomic/25/'
|
||||
# Set the ref we are tracking to the be fedora-atomic/25/x86_64/docker-host
|
||||
# one, which is what we are using for the two week releases. We want consumers
|
||||
# of this image to track the two week releases
|
||||
ostree admin set-origin --index 0 fedora-atomic https://kojipkgs.fedoraproject.org/atomic/25/ fedora-atomic/25/x86_64/docker-host
|
||||
|
||||
# Make sure the ref we're supposedly sitting on (according
|
||||
# to the updated origin) exists.
|
||||
ostree refs fedora-atomic:fedora-atomic/25/x86_64/updates/docker-host --create fedora-atomic:fedora-atomic/25/x86_64/docker-host
|
||||
|
||||
# Remove the old ref so that the commit eventually gets
|
||||
# cleaned up.
|
||||
ostree refs fedora-atomic:fedora-atomic/25/x86_64/updates/docker-host --delete
|
||||
|
||||
# older versions of livecd-tools do not follow "rootpw --lock" line above
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=964299
|
||||
@@ -47,6 +56,9 @@ passwd -l root
|
||||
# remove the user anaconda forces us to make
|
||||
userdel -r none
|
||||
|
||||
# Work around https://bugzilla.redhat.com/show_bug.cgi?id=1193590
|
||||
cp /etc/skel/.bash* /var/roothome
|
||||
|
||||
# Configure docker-storage-setup to resize the partition table on boot
|
||||
# https://github.com/projectatomic/docker-storage-setup/pull/25
|
||||
echo 'GROWPART=true' > /etc/sysconfig/docker-storage-setup
|
||||
@@ -131,5 +143,10 @@ echo "Adding Developer Mode GRUB2 menu item."
|
||||
# fails due to RHBZ #1369794
|
||||
/sbin/chkconfig network off
|
||||
|
||||
%end
|
||||
# Anaconda is writing an /etc/resolv.conf from the install environment.
|
||||
# The system should start out with an empty file, otherwise cloud-init
|
||||
# will try to use this information and may error:
|
||||
# https://bugs.launchpad.net/cloud-init/+bug/1670052
|
||||
truncate -s 0 /etc/resolv.conf
|
||||
|
||||
%end
|
||||
|
||||
@@ -42,7 +42,7 @@ systemctl mask cloud-init cloud-init-local cloud-config cloud-final
|
||||
|
||||
# Vagrant setup
|
||||
sed -i 's,Defaults\\s*requiretty,Defaults !requiretty,' /etc/sudoers
|
||||
echo 'vagrant ALL=NOPASSWD: ALL' > /etc/sudoers.d/vagrant-nopasswd
|
||||
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/vagrant-nopasswd
|
||||
sed -i 's/.*UseDNS.*/UseDNS no/' /etc/ssh/sshd_config
|
||||
mkdir -m 0700 -p ~vagrant/.ssh
|
||||
cat > ~vagrant/.ssh/authorized_keys << EOKEYS
|
||||
|
||||
@@ -278,5 +278,11 @@ rm -f /etc/sysconfig/network-scripts/ifcfg-ens3
|
||||
rm -f /etc/machine-id
|
||||
touch /etc/machine-id
|
||||
|
||||
# Anaconda is writing an /etc/resolv.conf from the install environment.
|
||||
# The system should start out with an empty file, otherwise cloud-init
|
||||
# will try to use this information and may error:
|
||||
# https://bugs.launchpad.net/cloud-init/+bug/1670052
|
||||
truncate -s 0 /etc/resolv.conf
|
||||
|
||||
%end
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ reboot
|
||||
|
||||
%packages --excludedocs --instLangs=en --nocore
|
||||
bash
|
||||
tar # https://bugzilla.redhat.com/show_bug.cgi?id=1409920
|
||||
fedora-release
|
||||
rootfiles
|
||||
vim-minimal
|
||||
@@ -83,12 +84,12 @@ rm -f /tmp/ks-script*
|
||||
#Mask mount units and getty service so that we don't get login prompt
|
||||
systemctl mask systemd-remount-fs.service dev-hugepages.mount sys-fs-fuse-connections.mount systemd-logind.service getty.target console-getty.service
|
||||
|
||||
# Fix /run/lock breakage since it's not tmpfs in docker
|
||||
umount /run
|
||||
systemd-tmpfiles --create --boot
|
||||
|
||||
# Remove machine-id on pre generated images
|
||||
rm -f /etc/machine-id
|
||||
touch /etc/machine-id
|
||||
|
||||
# Fix /run/lock breakage since it's not tmpfs in docker
|
||||
umount /run
|
||||
systemd-tmpfiles --create --boot
|
||||
|
||||
%end
|
||||
|
||||
@@ -25,7 +25,7 @@ mate-disk-usage-analyzer
|
||||
# more backgrounds
|
||||
f25-backgrounds-base
|
||||
f25-backgrounds-mate
|
||||
f24-backgrounds-extras-base
|
||||
f25-backgrounds-extras-base
|
||||
|
||||
# system tools
|
||||
system-config-printer
|
||||
|
||||
Reference in New Issue
Block a user