Fix iso.toml schema; add first-boot service and ISO customizations
This commit is contained in:
@@ -0,0 +1 @@
|
||||
enable fluffy-pancake-firstboot.service
|
||||
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Fluffy Pancake First Boot Initialization
|
||||
ConditionFirstBoot=yes
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/libexec/fluffy-pancake/firstboot.sh
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=first-boot-complete.target
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
echo "[fluffy-pancake-firstboot] starting"
|
||||
|
||||
if systemctl list-unit-files | grep -q '^brew-setup.service'; then
|
||||
systemctl start brew-setup.service || true
|
||||
fi
|
||||
|
||||
if systemctl list-unit-files | grep -q '^flatpak-add-fedora-repos.service'; then
|
||||
systemctl start flatpak-add-fedora-repos.service || true
|
||||
fi
|
||||
|
||||
echo "[fluffy-pancake-firstboot] done"
|
||||
@@ -24,3 +24,15 @@ enable = [
|
||||
disable = [
|
||||
"org.fedoraproject.Anaconda.Modules.Subscription"
|
||||
]
|
||||
|
||||
[[customizations.files]]
|
||||
path = "/files/usr/lib/systemd/system/fluffy-pancake-firstboot.service"
|
||||
destination = "/usr/lib/systemd/system/fluffy-pancake-firstboot.service"
|
||||
|
||||
[[customizations.files]]
|
||||
path = "/files/usr/libexec/fluffy-pancake/firstboot.sh"
|
||||
destination = "/usr/libexec/fluffy-pancake/firstboot.sh"
|
||||
|
||||
[[customizations.files]]
|
||||
path = "/files/usr/lib/systemd/system-preset/90-fluffy-pancake-firstboot.preset"
|
||||
destination = "/usr/lib/systemd/system-preset/90-fluffy-pancake-firstboot.preset"
|
||||
|
||||
Reference in New Issue
Block a user