#version=DEVEL # X Window System configuration information xconfig --startxonboot # Keyboard layouts keyboard 'us' # Root password rootpw --iscrypted --lock locked # System language lang en_US.UTF-8 # Shutdown after installation shutdown # System timezone timezone Asia/Shanghai --isUtc # Network information network --bootproto=dhcp --device=link --activate repo --name="koji-dist-oc9-webui-build-46878" --baseurl=http://build.opencloudos.tech/kojifiles/repos/dist-oc9-webui-build/46878/aarch64 # Use network installation url --url="https://build.opencloudos.tech/kojifiles/repos/dist-oc9-webui-build/latest/$basearch/" # Run the Setup Agent on first boot firstboot --enable # SELinux configuration selinux --disabled # System services services --disabled="sshd" --enabled="NetworkManager" # System bootloader configuration bootloader --append="selinux=0" --location=none # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all # Disk partitioning information part / --fstype="ext4" --size=7168 %post # set livesys session type sed -i 's/^livesys_session=.*/livesys_session="gnome"/' /etc/sysconfig/livesys # set gnome init rm -rf /home/liveuser/.config # set live background, TODO #sudo -u liveuser gsettings org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/gnome/adwaita-l.webp' sed -i "s/jpg/webp/g" /usr/share/glib-2.0/schemas/org.gnome.desktop.background.gschema.xml glib-compile-schemas /usr/share/glib-2.0/schemas # Enable livesys services systemctl enable livesys.service systemctl enable livesys-late.service # enable tmpfs for /tmp systemctl enable tmp.mount # make it so that we don't do writing to the overlay for things which # are just tmpdirs/caches # note https://bugzilla.redhat.com/show_bug.cgi?id=1135475 cat >> /etc/fstab << EOF vartmp /var/tmp tmpfs defaults 0 0 EOF # work around for poor key import UI in PackageKit rm -f /var/lib/rpm/__db* echo "Packages within this LiveCD" rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn # Note that running rpm recreates the rpm db files which aren't needed or wanted rm -f /var/lib/rpm/__db* # go ahead and pre-make the man -k cache (#455968) /usr/bin/mandb # Remove machine-id on pre generated images rm -f /etc/machine-id touch /etc/machine-id %end %packages @Server with GUI @anaconda-tools anaconda anaconda-install-env-deps anaconda-live anaconda-webui dnf dracut-config-generic dracut-live efibootmgr glibc-all-langpacks gnome-backgrounds kernel kernel-modules kernel-modules-extra livesys-scripts opencloudos-logos shim -dracut-config-rescue -gfs2-utils -reiserfs-utils %end