Compare commits

..

11 Commits
0.25.3 ... f25

Author SHA1 Message Date
Dusty Mabe
26be0f2d85 Move manipulation of machine-id above systemd-tmpfiles
For complicated reasons the systemd-tmpfiles call acutally
fails and causes the rest of the kspost to not get run. This
commit makes it the last thing to get run.

This has been fixed in future branches with a more complicated
set of patches:

- https://pagure.io/fedora-kickstarts/c/a4ae071
- https://pagure.io/fedora-kickstarts/c/f6ecdc3

Signed-off-by: Dusty Mabe <dusty@dustymabe.com>
2017-10-31 11:50:56 -04:00
Dusty Mabe
6553b85eba zero out resolv.conf during install
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

(cherry picked from commit fc0a635bc4)
2017-03-29 14:44:31 -04:00
Jonathan Lebon
015e301b25 fedora-atomic.ks: create new ref and delete old one
1. Make sure that the ref we sit on exists. This will also work around
   a subtle issue which would cause static deltas to not be used (though
   https://github.com/ostreedev/ostree/pull/710 will fix that).
2. Make sure we delete the old refs so that the commit eventually gets
   cleaned up.
2017-03-02 11:01:24 -05:00
Dusty Mabe
e77c443079 atomic: use kojipkgs url everywhere
We need to use the kojipkgs url on the builders because they don't
have access to dl.fp.o. After some discussion we have just decided
to use the kojipkgs url everywhere as the dl.fp.o url is just a
redirect anyway.
2017-02-09 15:02:18 -05:00
Dusty Mabe
3fd7e8b009 atomic: build from updates ostree ref
We want to build images from ostree ref that gets updated "nightly"
but we want consumers of the image to track the two week releases.

This is part of work for ticket: https://pagure.io/releng/issue/6545
2017-02-07 17:17:19 -05:00
Dusty Mabe
8909332a6d atomic: use the dl.fp.o url
Would be better to just go ahead and use the dl.fp.o url in our
ostreesetup command so that we don't have to worry about doing the
remote delete/add in the %post. The dl.fp.o url [1] is just a redirect
to the kojipkgs url [2] anyway.

[1] https://dl.fedoraproject.org/pub/fedora/linux/atomic/25/
[2] https://kojipkgs.fedoraproject.org/atomic/25/
2017-02-07 17:00:50 -05:00
Thomas Mueller
ee920bfa1f Allow vagrant user to sudo to all users
This addresses atomic-wg issue 173.

Also vagrant docs https://www.vagrantup.com/docs/boxes/base.html
tell to configure it like this.

(cherry picked from commit 2cb099d7a3)
2017-02-03 17:04:00 +01:00
Colin Walters
e11de770d0 atomic: Add workaround for bash 2017-01-23 10:26:41 -05:00
Adam Miller
f85bbb10ee add tar to address BZ#1409920
Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>
2017-01-04 15:32:53 -06:00
Dusty Mabe
0ef56672f7 Fix the url for the ostree repo
Bodhi updates https://kojipkgs.fedoraproject.org/atomic/25/ on every
stable update run. We need to point the repo there as the old location
is what was updated by pungi before F25 release.

Note that https://dl.fedoraproject.org/pub/fedora/linux/atomic/25/
redirects to https://kojipkgs.fedoraproject.org/atomic/25/.
2016-12-05 16:46:41 -05:00
raveit65
15e9749cd4 Mate: add f25-backgrounds-extras 2016-11-19 09:53:49 +01:00
6 changed files with 36 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ systemctl mask cloud-init cloud-init-local cloud-config cloud-final
# Vagrant setup # Vagrant setup
sed -i 's,Defaults\\s*requiretty,Defaults !requiretty,' /etc/sudoers 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 sed -i 's/.*UseDNS.*/UseDNS no/' /etc/ssh/sshd_config
mkdir -m 0700 -p ~vagrant/.ssh mkdir -m 0700 -p ~vagrant/.ssh
cat > ~vagrant/.ssh/authorized_keys << EOKEYS cat > ~vagrant/.ssh/authorized_keys << EOKEYS

View File

@@ -32,14 +32,23 @@ volgroup atomicos pv.01
logvol / --size=3000 --fstype="xfs" --name=root --vgname=atomicos logvol / --size=3000 --fstype="xfs" --name=root --vgname=atomicos
# Equivalent of %include fedora-repo.ks # 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 reboot
%post --erroronfail %post --erroronfail
# See https://github.com/projectatomic/rpm-ostree/issues/42 # Set the ref we are tracking to the be fedora-atomic/25/x86_64/docker-host
ostree remote delete fedora-atomic # one, which is what we are using for the two week releases. We want consumers
ostree remote add --set=gpg-verify=false fedora-atomic 'https://dl.fedoraproject.org/pub/fedora/linux/atomic/25/' # 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 # older versions of livecd-tools do not follow "rootpw --lock" line above
# https://bugzilla.redhat.com/show_bug.cgi?id=964299 # https://bugzilla.redhat.com/show_bug.cgi?id=964299
@@ -47,6 +56,9 @@ passwd -l root
# remove the user anaconda forces us to make # remove the user anaconda forces us to make
userdel -r none 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 # Configure docker-storage-setup to resize the partition table on boot
# https://github.com/projectatomic/docker-storage-setup/pull/25 # https://github.com/projectatomic/docker-storage-setup/pull/25
echo 'GROWPART=true' > /etc/sysconfig/docker-storage-setup echo 'GROWPART=true' > /etc/sysconfig/docker-storage-setup
@@ -131,5 +143,10 @@ echo "Adding Developer Mode GRUB2 menu item."
# fails due to RHBZ #1369794 # fails due to RHBZ #1369794
/sbin/chkconfig network off /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

View File

@@ -42,7 +42,7 @@ systemctl mask cloud-init cloud-init-local cloud-config cloud-final
# Vagrant setup # Vagrant setup
sed -i 's,Defaults\\s*requiretty,Defaults !requiretty,' /etc/sudoers 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 sed -i 's/.*UseDNS.*/UseDNS no/' /etc/ssh/sshd_config
mkdir -m 0700 -p ~vagrant/.ssh mkdir -m 0700 -p ~vagrant/.ssh
cat > ~vagrant/.ssh/authorized_keys << EOKEYS cat > ~vagrant/.ssh/authorized_keys << EOKEYS

View File

@@ -278,5 +278,11 @@ rm -f /etc/sysconfig/network-scripts/ifcfg-ens3
rm -f /etc/machine-id rm -f /etc/machine-id
touch /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 %end

View File

@@ -30,6 +30,7 @@ reboot
%packages --excludedocs --instLangs=en --nocore %packages --excludedocs --instLangs=en --nocore
bash bash
tar # https://bugzilla.redhat.com/show_bug.cgi?id=1409920
fedora-release fedora-release
rootfiles rootfiles
vim-minimal 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 #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 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 # Remove machine-id on pre generated images
rm -f /etc/machine-id rm -f /etc/machine-id
touch /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 %end

View File

@@ -25,7 +25,7 @@ mate-disk-usage-analyzer
# more backgrounds # more backgrounds
f25-backgrounds-base f25-backgrounds-base
f25-backgrounds-mate f25-backgrounds-mate
f24-backgrounds-extras-base f25-backgrounds-extras-base
# system tools # system tools
system-config-printer system-config-printer