forked from sibsau/docker-rosa
-
Notifications
You must be signed in to change notification settings - Fork 2
/
fedora.sh
executable file
·68 lines (59 loc) · 1.35 KB
/
fedora.sh
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
#!/usr/bin/env bash
# Build rootfs of Fedora
dnfConf="$(mktemp)"
trap 'rm -f "$dnfConf"' EXIT
arch="${arch:-x86_64}"
# rawhide, 34, 35 etc.
fedoraVersion="${fedoraVersion:-rawhide}"
rosaVersion="${fedoraVersion}"
fedoraType="${fedoraType:-}"
if [ -z "$fedoraType" ]; then
case "$fedoraVersion" in
development ) fedoraType=development ;;
* ) fedoraType=releases ;;
esac
fi
enableContrib=0
cat > "$dnfConf" << EOF
[main]
basearch=${arch}
keepcache=0
reposdir=/dev/null
gpgcheck=0
assumeyes=1
install_weak_deps=0
metadata_expire=1h
best=1
[${fedoraVersion}]
name=Fedora - ${fedoraVersion}
baseurl=https://mirror.yandex.ru/fedora/linux/${fedoraType}/${fedoraVersion}/Everything//${arch}/os/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=${fedoraVersion}&arch=$basearch
enabled=1
[${fedoraVersion}-modular]
name=Fedora - Modular ${fedoraVersion}
baseurl=https://mirror.yandex.ru/fedora/linux/${fedoraType}/${fedoraVersion}/Modular//${arch}/os/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=${fedoraVersion}-modular&arch=$basearch
enabled=1
EOF
brandingPackages="fedora-release-container"
packagesList="\
basesystem \
dnf \
rpm \
fedora-repos \
fedora-repos-modular \
systemd \
systemd-networkd \
util-linux \
glibc-langpack-en \
glibc-langpack-ru \
curl \
wget \
htop \
nano \
iproute \
iputils \
sudo \
passwd \
/usr/bin/chsh"
. mkimage-dnf.sh