diff options
author | Andrew Cady <d@cryptonomic.net> | 2021-03-03 03:15:35 -0500 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2021-03-03 03:15:35 -0500 |
commit | 5bf743c7f970d228a24b770d1c87dd398e42e4ee (patch) | |
tree | 346b93b8efad5a84c6bc27b71cb2a7a43567fb63 /src/initrd/firstboot.service | |
parent | 60f81e1cd5b9c7f4c3249f1f6e6f2d62d70e6e11 (diff) |
automatically make the boot medium ejectable
Diffstat (limited to 'src/initrd/firstboot.service')
-rw-r--r-- | src/initrd/firstboot.service | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/initrd/firstboot.service b/src/initrd/firstboot.service new file mode 100644 index 0000000..3b7e602 --- /dev/null +++ b/src/initrd/firstboot.service | |||
@@ -0,0 +1,10 @@ | |||
1 | [Unit] | ||
2 | Description=Samizdat - Samizdat Eject - Ejects the install source medium. Initiates copy of the rootfs to destination medium. | ||
3 | After=network.target | ||
4 | |||
5 | [Service] | ||
6 | Type=oneshot | ||
7 | ExecStart=/bin/btrfs device remove 1 2 / | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=multi-user.target | ||