Compare commits
15 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
f4b1d8a7b8 | ||
|
693050fc10 | ||
|
e25c0fc4aa | ||
|
542b686983 | ||
|
4cd02b94a7 | ||
|
a46ae1fd92 | ||
|
0e65914aca | ||
|
be2513ff60 | ||
|
42018f0d3b | ||
|
865394be02 | ||
|
1532616541 | ||
|
9ecebea5f2 | ||
|
5742820d43 | ||
|
40a69d3fd7 | ||
|
444a25db83 |
@ -147,6 +147,13 @@ EOKEYS
|
||||
chmod 600 ~vagrant/.ssh/authorized_keys
|
||||
chown -R vagrant:vagrant ~vagrant/.ssh/
|
||||
|
||||
cat > /etc/sudoers.d/vagrant << EOSUDOER
|
||||
## Ensure the vagrant user always can use sudo
|
||||
Defaults:vagrant !requiretty
|
||||
vagrant ALL=(ALL) NOPASSWD: ALL
|
||||
EOSUDOER
|
||||
chmod 600 /etc/sudoers.d/vagrant
|
||||
|
||||
cat > /etc/ssh/sshd_config.d/10-vagrant-insecure-rsa-key.conf <<EOF
|
||||
# For now the vagrant insecure key is an rsa key
|
||||
# https://github.com/hashicorp/vagrant/issues/11783
|
||||
|
@ -7,12 +7,12 @@
|
||||
<specification>Fedora Linux</specification>
|
||||
</description>
|
||||
<preferences>
|
||||
<version>Rawhide</version>
|
||||
<version>40</version>
|
||||
<packagemanager>dnf</packagemanager>
|
||||
<locale>en_US</locale>
|
||||
<keytable>us</keytable>
|
||||
<timezone>UTC</timezone>
|
||||
<release-version>rawhide</release-version>
|
||||
<release-version>40</release-version>
|
||||
</preferences>
|
||||
<include from="this://./repositories/core.xml"/>
|
||||
<include from="this://./components/boot.xml"/>
|
||||
|
@ -1 +1 @@
|
||||
core-rawhide.xml
|
||||
core-nonrawhide.xml
|
@ -57,8 +57,7 @@
|
||||
rootfs_label="fedora"
|
||||
>
|
||||
<bootloader name="grub2" timeout="0"/>
|
||||
<!-- GCP engineers have told us the disk images have bad performance if they are anything less than 10G -->
|
||||
<size unit="G">10</size>
|
||||
<size unit="G">5</size>
|
||||
<systemdisk>
|
||||
<volume name="@root=root"/>
|
||||
<volume name="home" parent="/"/>
|
||||
@ -78,7 +77,8 @@
|
||||
rootfs_label="fedora"
|
||||
>
|
||||
<bootloader name="grub2" timeout="0"/>
|
||||
<size unit="G">5</size>
|
||||
<!-- GCP engineers have told us the disk images have bad performance if they are anything less than 10G -->
|
||||
<size unit="G">10</size>
|
||||
<systemdisk>
|
||||
<volume name="@root=root"/>
|
||||
<volume name="home" parent="/"/>
|
||||
@ -97,7 +97,7 @@
|
||||
bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="100" firmware="uefi"
|
||||
rootfs_label="fedora"
|
||||
>
|
||||
<bootloader name="grub2" timeout="0"/>
|
||||
<bootloader name="grub2" console="serial" timeout="0"/>
|
||||
<size unit="G">5</size>
|
||||
<systemdisk>
|
||||
<volume name="@root=root"/>
|
||||
@ -117,7 +117,7 @@
|
||||
bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" firmware="ofw"
|
||||
rootfs_label="fedora"
|
||||
>
|
||||
<bootloader name="grub2" timeout="0"/>
|
||||
<bootloader name="grub2" console="serial" timeout="0"/>
|
||||
<size unit="G">5</size>
|
||||
<systemdisk>
|
||||
<volume name="@root=root"/>
|
||||
|
@ -14,7 +14,7 @@
|
||||
<type image="oci">
|
||||
<containerconfig
|
||||
name="fedora"
|
||||
tag="rawhide"
|
||||
tag="40"
|
||||
maintainer="Fedora Project Contributors <devel@lists.fedoraproject.org>"
|
||||
>
|
||||
<subcommand execute="/bin/bash"/>
|
||||
@ -22,11 +22,13 @@
|
||||
<label name="org.opencontainers.image.vendor" value="Fedora Project"/>
|
||||
<label name="org.opencontainers.image.url" value="https://fedoraproject.org/"/>
|
||||
<label name="org.opencontainers.image.license" value="MIT"/>
|
||||
<label name="org.opencontainers.image.version" value="rawhide"/>
|
||||
<label name="org.opencontainers.image.name" value="fedora"/>
|
||||
<label name="org.opencontainers.image.version" value="40"/>
|
||||
<!-- Legacy attributes for backward compatibility -->
|
||||
<label name="vendor" value="Fedora Project"/>
|
||||
<label name="license" value="MIT"/>
|
||||
<label name="version" value="rawhide"/>
|
||||
<label name="name" value="fedora"/>
|
||||
<label name="version" value="40"/>
|
||||
</labels>
|
||||
</containerconfig>
|
||||
</type>
|
||||
@ -39,7 +41,7 @@
|
||||
<type image="oci">
|
||||
<containerconfig
|
||||
name="fedora-minimal"
|
||||
tag="rawhide"
|
||||
tag="40"
|
||||
maintainer="Fedora Project Contributors <devel@lists.fedoraproject.org>"
|
||||
>
|
||||
<subcommand execute="/bin/bash"/>
|
||||
@ -47,11 +49,13 @@
|
||||
<label name="org.opencontainers.image.vendor" value="Fedora Project"/>
|
||||
<label name="org.opencontainers.image.url" value="https://fedoraproject.org/"/>
|
||||
<label name="org.opencontainers.image.license" value="MIT"/>
|
||||
<label name="org.opencontainers.image.version" value="rawhide"/>
|
||||
<label name="org.opencontainers.image.name" value="fedora-minimal"/>
|
||||
<label name="org.opencontainers.image.version" value="40"/>
|
||||
<!-- Legacy attributes for backward compatibility -->
|
||||
<label name="vendor" value="Fedora Project"/>
|
||||
<label name="license" value="MIT"/>
|
||||
<label name="version" value="rawhide"/>
|
||||
<label name="name" value="fedora-minimal"/>
|
||||
<label name="version" value="40"/>
|
||||
</labels>
|
||||
</containerconfig>
|
||||
</type>
|
||||
@ -64,7 +68,7 @@
|
||||
<type image="oci">
|
||||
<containerconfig
|
||||
name="fedora-toolbox"
|
||||
tag="rawhide"
|
||||
tag="40"
|
||||
maintainer="Fedora Project Contributors <devel@lists.fedoraproject.org>"
|
||||
>
|
||||
<subcommand execute="/bin/bash"/>
|
||||
@ -72,12 +76,14 @@
|
||||
<label name="org.opencontainers.image.vendor" value="Fedora Project"/>
|
||||
<label name="org.opencontainers.image.url" value="https://fedoraproject.org/"/>
|
||||
<label name="org.opencontainers.image.license" value="MIT"/>
|
||||
<label name="org.opencontainers.image.version" value="rawhide"/>
|
||||
<label name="org.opencontainers.image.name" value="fedora-toolbox"/>
|
||||
<label name="org.opencontainers.image.version" value="40"/>
|
||||
<label name="com.github.containers.toolbox" value="true"/>
|
||||
<!-- Legacy attributes for backward compatibility -->
|
||||
<label name="vendor" value="Fedora Project"/>
|
||||
<label name="license" value="MIT"/>
|
||||
<label name="version" value="rawhide"/>
|
||||
<label name="name" value="fedora-toolbox"/>
|
||||
<label name="version" value="40"/>
|
||||
</labels>
|
||||
</containerconfig>
|
||||
</type>
|
||||
@ -121,6 +127,9 @@
|
||||
<packages type="bootstrap" profiles="Container-Base-Generic">
|
||||
<ignore name="glibc-langpack-en"/>
|
||||
<ignore name="langpacks-en"/>
|
||||
<package name="bzip2"/>
|
||||
<package name="gzip"/>
|
||||
<package name="sudo"/>
|
||||
<package name="rootfiles"/>
|
||||
<package name="tar"/> <!-- https://bugzilla.redhat.com/show_bug.cgi?id=1409920 -->
|
||||
<package name="vim-minimal"/>
|
||||
@ -128,6 +137,8 @@
|
||||
<package name="dnf-yum"/> <!-- https://pagure.io/fesco/issue/1312#comment-30991 -->
|
||||
<package name="glibc-minimal-langpack"/>
|
||||
<package name="tzdata"/>
|
||||
<package name="xz"/>
|
||||
<package name="zstd"/>
|
||||
</packages>
|
||||
<packages type="bootstrap" patternType="plusRecommended" profiles="Container-Toolbox">
|
||||
<ignore name="dosfstools"/>
|
||||
@ -154,6 +165,7 @@
|
||||
<package name="bzip2"/>
|
||||
<package name="coreutils"/>
|
||||
<package name="coreutils-common"/>
|
||||
<package name="cpio"/>
|
||||
<package name="curl"/>
|
||||
<package name="default-editor"/>
|
||||
<package name="diffutils"/>
|
||||
@ -161,6 +173,7 @@
|
||||
<package name="dnf-yum"/> <!-- https://pagure.io/fesco/issue/1312#comment-30991 -->
|
||||
<package name="dnf-plugins-core"/>
|
||||
<package name="fedora-release-toolbx"/>
|
||||
<package name="file"/>
|
||||
<package name="findutils"/>
|
||||
<package name="flatpak-spawn"/>
|
||||
<package name="fpaste"/>
|
||||
@ -178,6 +191,7 @@
|
||||
<package name="kbd-misc"/>
|
||||
<package name="keyutils"/>
|
||||
<package name="krb5-libs"/>
|
||||
<package name="langpacks-en"/>
|
||||
<package name="less"/>
|
||||
<package name="libcap"/>
|
||||
<package name="lsof"/>
|
||||
@ -192,7 +206,6 @@
|
||||
<package name="openssl"/>
|
||||
<package name="p11-kit"/>
|
||||
<package name="pam"/>
|
||||
<package name="passwd"/>
|
||||
<package name="pigz"/>
|
||||
<package name="procps-ng"/>
|
||||
<package name="psmisc"/>
|
||||
@ -224,7 +237,7 @@
|
||||
<package name="zip"/>
|
||||
</packages>
|
||||
<packages type="uninstall" profiles="Container-Toolbox">
|
||||
<package name="kbd-misc"/>
|
||||
<package name="dracut"/>
|
||||
<package name="pinentry"/>
|
||||
<package name="systemd-resolved"/>
|
||||
<package name="xkeyboard-config"/>
|
||||
|
@ -3,8 +3,8 @@ echo "###" "$0" "$@"
|
||||
|
||||
# set arch-specific variables
|
||||
case "$(uname -m)" in
|
||||
aarch64) arch="aa64"; ARCH="AA64"; uuid="b921b045-1df0-41c3-af44-4c6f280d3fae";;
|
||||
x86_64) arch="x64"; ARCH="X64"; uuid="4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709";;
|
||||
aarch64) arch="aa64"; ARCH="AA64";;
|
||||
x86_64) arch="x64"; ARCH="X64";;
|
||||
esac
|
||||
|
||||
# figure where shim.efi and BOOT.CSV are located
|
||||
@ -25,15 +25,6 @@ for uki in lib/modules/*/vmlinuz*.efi; do
|
||||
| iconv -f utf-8 -t ucs-2le >> "$csv"
|
||||
done
|
||||
|
||||
# kiwi doesn't setup discoverable partitions, so fixup after the fact
|
||||
# here. The UKI depends on that to find the root filesystem.
|
||||
# * The image is loop-mounted.
|
||||
# - partition #1 is biosboot (can this be disabled?).
|
||||
# - partition #2 is the EFI ESP.
|
||||
# - partition #3 is the root filesystem (this needs fixup).
|
||||
echo "# hack: rootfs: $uuid"
|
||||
sfdisk --part-type /dev/loop0 3 "$uuid"
|
||||
|
||||
# bz2240989: shim has a hard dependency on grub. grub has a hard
|
||||
# dependency on dracut. Ideally we would simply not install
|
||||
# grub+dracut, but given we can't until the shim bug is fixed disable
|
||||
|
Loading…
x
Reference in New Issue
Block a user