Move common live functionality to a new layer

This commit is contained in:
Jan Schär 2024-05-11 14:45:55 +02:00
parent ad6548f839
commit dd3c07efb7
10 changed files with 4 additions and 28 deletions

View file

@ -1,6 +0,0 @@
#!/bin/bash
set -eu
# Enable the live system configuration script at boot.
systemctl enable live-config.service

View file

@ -1,3 +0,0 @@
# Disable lock on blank screen
[org/gnome/desktop/screensaver]
lock-enabled = false

View file

@ -1,5 +0,0 @@
# Disable "Updates available" notifications and auto updates.
# Updates which require reboot are useless on live systems,
# and other updates would be installed on each boot.
[org/gnome/software]
allow-updates = false

View file

@ -1,14 +0,0 @@
[Unit]
Description=custom configuration of live system during boot.
Before=basic.target
After=local-fs.target systemd-tmpfiles-setup.service
DefaultDependencies=no
ConditionKernelCommandLine=boot=live
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/local/bin/live-config
[Install]
WantedBy=basic.target