Skip to content

Commit

Permalink
Manage many Anaconda-written files in /etc
Browse files Browse the repository at this point in the history
This simplifies implementing factory reset, because we don't have to
worry about retaining these files.

At the same time, implement a root password since systemd makes it so
easy.

Fixes #15
  • Loading branch information
strugee committed Oct 13, 2024
1 parent d6f42c3 commit 20bbb99
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ COPY systemd/* /usr/lib/systemd/system/
COPY desktops/* /usr/share/applications/
COPY misc/seagl-state-dir.conf /usr/lib/tmpfiles.d/
COPY icon/seagl-logo-icon.svg /usr/share/icons/hicolor/scalable/places/
COPY etc/* /etc/

RUN mkdir -p /var/lib/alternatives && \
/tmp/build.sh && \
Expand Down
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ rpm-ostree install libreoffice nextcloud-client nextcloud-client-nautilus

### Configure system

systemctl set-default graphical.target
systemd-firstboot --locale="en_US.UTF-8" --timezone=America/Los_Angeles --hostname seagl-unconfigured --root-password=password

sed -i 's/\[daemon\]/[daemon]\nAutomaticLoginEnable=true\nAutomaticLogin=seagloperator/' /etc/gdm/custom.conf
systemctl enable seagl-reset-users.service

Expand Down
3 changes: 3 additions & 0 deletions etc/adjtime
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
0.0 0 0.0
0
UTC
Empty file added etc/crypttab
Empty file.
1 change: 1 addition & 0 deletions etc/sysconfig/network
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Created by Anaconda
2 changes: 2 additions & 0 deletions etc/vconsole.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
KEYMAP="us"
FONT="eurlatgr"

0 comments on commit 20bbb99

Please sign in to comment.