Skip to content

Commit

Permalink
usysconf-epoch: Clean up service file
Browse files Browse the repository at this point in the history
  • Loading branch information
silkeh committed Aug 7, 2024
1 parent 76692f2 commit e0805f8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/u/usysconf-epoch/files/usysconf-epoch.service
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
## This runs the epoch script very early in the boot, after the local filesystem are mounted but before anything else
## To test this script create /etc/sysconfig/epoch with I_UNDERSTAND_THAT_THIS_SCRIPT_CAN_BREAK_MY_SYSTEM defined to do the usr-merge
## and I_WANT_TO_TEST_THE_EPOCH_TRANSITION_WORKS defined if you want it to create the eopkg marker file at the end


## To test this script, create /etc/sysconfig/epoch with the following content:
##
## I_UNDERSTAND_THAT_THIS_SCRIPT_CAN_BREAK_MY_SYSTEM=1
## I_WANT_TO_TEST_THE_EPOCH_TRANSITION_WORKS=1
##
## This will perform the usr merge and create an read/write the epoch transition flag files.
[Unit]
Description=Usysconf Epoch script

DefaultDependencies=no
After=local-fs.target systemd-tmpfiles-setup.service
Before=sysinit.target
Before=sysinit.target shutdown.target initrd-switch-root.target
Conflicts=shutdown.target initrd-switch-root.target
Before=shutdown.target initrd-switch-root.target

[Service]
EnvironmentFile=-/etc/sysconfig/epoch
Expand Down

0 comments on commit e0805f8

Please sign in to comment.