Gentoo Archives: gentoo-dev

From: Rich Freeman <rich0@g.o>
To: gentoo-dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] newsitem: openrc-0.28 mounts efivars read only
Date: Thu, 13 Jul 2017 12:46:03
Message-Id: CAGfcS_nD5wi39y92TqdYLrY1-Ek4_KFY3uj12JB+OtoLseFwPw@mail.gmail.com
In Reply to: Re: [gentoo-dev] newsitem: openrc-0.28 mounts efivars read only by Andrew Savchenko
1 On Thu, Jul 13, 2017 at 8:14 AM, Andrew Savchenko <bircoph@g.o> wrote:
2 >
3 > I see no problems with compatibility. In case of software needs to
4 > write to efivars (bootloader installation, etc) algo is simple:
5 >
6 > flag = false;
7 > if (mounted(efivars) == RO) { remount(efivars, RW); flag = true; }
8 > do_usual_stuff();
9 > if (flag) remount(efivars, RO);
10 >
11
12 Certainly. I was just pointing out that we shouldn't make
13 assumptions. Honestly, that is probably better in the openrc case as
14 well, in case a user should want to mount efivars differently for
15 whatever reason.
16
17 --
18 Rich