-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f162966
commit 18f28b2
Showing
4 changed files
with
60 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ packages: | |
|
||
disk: | ||
bootloader: true | ||
root_format: btrfs | ||
root_format: ext4 | ||
disk_size: 8G | ||
|
||
sys: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,4 @@ sys: | |
|
||
script: | ||
init: init.sh | ||
postinst: postinst.sh | ||
postinst: postinst-live.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash -x | ||
echo postinst | ||
systemctl disable systemd-networkd-wait-online systemd-networkd systemd-networkd.socket | ||
systemctl disable chronyd | ||
# systemctl disable polkit | ||
# Add polkitd user manually, weird hack because preinstall script doesn't run | ||
cat << EOF > /usr/lib/sysusers.d/extras.conf | ||
# This is a really weird hack | ||
#Type Name ID Argument | ||
g polkitd 114 | ||
u polkitd 114:114 "User for polkitd" - - | ||
g rpc 32 | ||
u rpc 32:32 "Rpcbind Daemon" - - | ||
EOF | ||
|
||
echo max_parallel_downloads=20 >> /etc/dnf/dnf.conf | ||
echo defaultyes=True >> /etc/dnf/dnf.conf | ||
|
||
systemd-sysusers | ||
# dnf -y remove dracut-config-generic | ||
|
||
# dracut -vvv --force --regenerate-all -N | ||
|
||
rm -f /etc/machine-id | ||
touch /etc/machine-id | ||
|
||
rm -f /var/lib/rpm/__db* | ||
|
||
echo "Fixing SELinux labels" | ||
|
||
setfiles -v -F -e /proc -e /sys -e /dev -e /bin /etc/selinux/targeted/contexts/files/file_contexts / | ||
setfiles -v -F -e /proc -e /sys -e /dev -e /etc/selinux/targeted/contexts/files/file_contexts.bin /bin | ||
|