-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfedora-minimal.yaml
103 lines (84 loc) · 2.35 KB
/
fedora-minimal.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
releasever: 40
basearch: x86_64
repos:
- fedora
- fedora-updates
recommends: false
packages:
# boot
- efibootmgr
- grub2
- grub2-efi-x64
- shim
# dracut
- binutils
- memstrack
- pigz
# kernel
- kernel
- kernel-modules
- kernel-modules-extra
# workstation-ostree-support
- nss-altfiles
- ostree-grub2
- rpm-ostree
exclude-packages: []
# minimal-environment
include:
# mandatory groups
- comps/core.yaml
# optional groups
# - comps/standard.yaml
# - comps/guest-agents.yaml
# - comps/networkmanager-submodules.yaml
check-groups:
filename: group
type: file
check-passwd:
filename: passwd
type: file
etc-group-members:
- wheel
ignore-removed-groups:
- root
ignore-removed-users:
- root
container-cmd:
- /usr/bin/bash
boot-location: modules
# default-target: graphical.target
documentation: true
machineid-compat: false
# rpmdb: host
selinux: true
tmp-is-dir: true
postprocess:
- |
#!/usr/bin/env bash
set -xeuo pipefail
# Work around https://bugzilla.redhat.com/show_bug.cgi?id=1265295
# From https://github.com/coreos/fedora-coreos-config/blob/testing-devel/overlay.d/05core/usr/lib/systemd/journald.conf.d/10-coreos-persistent.conf
install -dm0755 /usr/lib/systemd/journald.conf.d/
echo -e "[Journal]\nStorage=persistent" > /usr/lib/systemd/journald.conf.d/10-persistent.conf
# See: https://src.fedoraproject.org/rpms/glibc/pull-request/4
# Basically that program handles deleting old shared library directories
# mid-transaction, which never applies to rpm-ostree. This is structured as a
# loop/glob to avoid hardcoding (or trying to match) the architecture.
for x in /usr/sbin/glibc_post_upgrade.*; do
if test -f ${x}; then
ln -srf /usr/bin/true ${x}
fi
done
# Remove loader directory causing issues in Anaconda in unified core mode
# Will be obsolete once we start using bootupd
rm -rf /usr/lib/ostree-boot/loader
# Undo RPM scripts enabling units; we want the presets to be canonical
# https://github.com/projectatomic/rpm-ostree/issues/1803
rm -rf /etc/systemd/system/*
systemctl preset-all
rm -rf /etc/systemd/user/*
systemctl --user --global preset-all
# # Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2218006
# systemctl enable nfs-client.target
postprocess-script: postprocess.sh