summaryrefslogtreecommitdiff
path: root/src/initrd/firstboot.service
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2021-03-03 03:15:35 -0500
committerAndrew Cady <d@cryptonomic.net>2021-03-03 03:15:35 -0500
commit5bf743c7f970d228a24b770d1c87dd398e42e4ee (patch)
tree346b93b8efad5a84c6bc27b71cb2a7a43567fb63 /src/initrd/firstboot.service
parent60f81e1cd5b9c7f4c3249f1f6e6f2d62d70e6e11 (diff)
automatically make the boot medium ejectable
Diffstat (limited to 'src/initrd/firstboot.service')
-rw-r--r--src/initrd/firstboot.service10
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]
2Description=Samizdat - Samizdat Eject - Ejects the install source medium. Initiates copy of the rootfs to destination medium.
3After=network.target
4
5[Service]
6Type=oneshot
7ExecStart=/bin/btrfs device remove 1 2 /
8
9[Install]
10WantedBy=multi-user.target