]> code.delx.au - monosys/commit
multiboot: Allow rewriting grub config without sudo.
authorGreg Darke <greg@tsukasa.net.au>
Thu, 19 May 2022 05:53:43 +0000 (15:53 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Fri, 27 May 2022 12:08:39 +0000 (22:08 +1000)
commitd6e17e9392e75d78136ab39921fa59bd1fb857d3
tree2d773fd9655b11de037564eea362a74b5c03f773
parent0eb920c2bb6dc07e56d33de3b58eaba0498dae5e
multiboot: Allow rewriting grub config without sudo.

Allow the `MULTIBOOT_MNT` environment to be passed in. My usage of this
variable is as follows:

```shell
$ MULTIBOOT_MNT="$(findmnt -n -o target LABEL=multiboot)" ./multiboot-setup grubcfg
```

This allows simple updates of the grub config, while taking advantage of
the auto mounter provided by Gnome.
hacks/multiboot-setup