]> git.ipfire.org Git - thirdparty/systemd.git/commit
bootctl: do not show an empty () for ESP partition
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 21 Jan 2026 12:24:24 +0000 (21:24 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 13 Feb 2026 07:11:33 +0000 (16:11 +0900)
commit9bc1336abd76de206641f81a6c4fef0820f4edaa
tree772085be95b648442875fa69c488c518725d1084
parent340c82c454119b734de262fdd93d2637162ad44c
bootctl: do not show an empty () for ESP partition

Before:
```
$ run0 systemd-nspawn -xD / --private-network --bind=/sys/firmware/efi/efivars --bind=/boot -- build/bootctl --variables=yes --no-pager
(snip)
Boot Loader Entry Locations:
          ESP: /boot ()
       config: /boot//loader/loader.conf
     XBOOTLDR: /boot ($BOOT)
        token: fedora
(snip)
```

After:
```
run0 systemd-nspawn -xD / --private-network --bind=/sys/firmware/efi/efivars --bind=/boot -- build/bootctl --variables=yes --no-pager
(snip)
Boot Loader Entry Locations:
          ESP: /boot
       config: /boot//loader/loader.conf
     XBOOTLDR: /boot ($BOOT)
        token: fedora
(snip)
```

This also moves spurious position of new line in each output.
src/bootctl/bootctl-status.c