From d070c49d39bf07c4604dd3d3ba2d3f7753047249 Mon Sep 17 00:00:00 2001 From: BrainwreckedTech <--get> Date: Sun, 22 Sep 2019 06:19:24 -0400 Subject: [PATCH] Created boot services to manage EFI boot settings --- bootnext@.service | 9 +++++++++ bootorder@.service | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 bootnext@.service create mode 100644 bootorder@.service diff --git a/bootnext@.service b/bootnext@.service new file mode 100644 index 0000000..aa1694e --- /dev/null +++ b/bootnext@.service @@ -0,0 +1,9 @@ +[Unit] +Description=Set EFI next boot to %I +After=basic.target + +[Service] +ExecStart=/usr/sbin/efibootmgr -n %I + +[Install] +WantedBy=multi-user.target diff --git a/bootorder@.service b/bootorder@.service new file mode 100644 index 0000000..fd5257d --- /dev/null +++ b/bootorder@.service @@ -0,0 +1,9 @@ +[Unit] +Description=Set EFI boot order to %I +After=basic.target + +[Service] +ExecStart=/usr/sbin/efibootmgr -o %I + +[Install] +WantedBy=multi-user.target