Skip to content

Commit

Permalink
Add 'set -x' and wipefs of devices with wildcard (#77)
Browse files Browse the repository at this point in the history
Already implemented in bastion, PR is to update the change in git repo.
  • Loading branch information
sgoveas authored Aug 8, 2024
1 parent ab9758d commit 6ac4d5a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ systemd:
Wants=network-online.target
[Service]
Type=oneshot
ExecStartPre=-bash -c 'for i in $(lsblk -I8,259 -nd --output name); do wipefs -a /dev/$i; done'
ExecStartPre=-bash -c 'set -x; for i in $(lsblk -I8,259 -nd --output name); do wipefs -a /dev/$i*; done; set +x'
ExecStartPre=-bash -c '/usr/sbin/efibootmgr -v | sed -nE "s|^Boot([0-9A-Fa-f]{4}).*HD\(.*$|\1|gp" | xargs -I% /usr/sbin/efibootmgr --delete-bootnum --bootnum %'
ExecStart=/usr/bin/systemctl --no-block poweroff
StandardOutput=kmsg+console
Expand Down

0 comments on commit 6ac4d5a

Please sign in to comment.