[systemd-devel] [PATCH 3/3] shutdown: pivot_root to a tmpfs directory to properly umount root
Harald Hoyer
harald.hoyer at gmail.com
Thu May 5 07:48:04 PDT 2011
Am 05.05.2011 15:55, schrieb Gustavo Sverzut Barbieri:
> On Thu, May 5, 2011 at 7:48 AM, <harald at redhat.com> wrote:
>> From: Harald Hoyer <harald at redhat.com>
>>
>> umount /boot
>> mount a tmpfs on /boot
>> mount bind all needed dirs
>> pivot_root to /boot
>> umount all mountpoints as before
>> see root be umounted properly and all dm devices deconstructed
>
> Some systems don't have /boot on different partitions, so this is not
> what you expect. Mabe use newly introduced /run?
>
That doesn't matter... we umount /boot in case there is s.th. mounted, and just
mount over a tmpfs. So all we need is the directory.
And we want the original /run in shutdown, too.
Well, we could just reuse it... we would have to remount it with +exec and be
careful not to execute a user implanted binary there... Maybe, maybe... we can
think about it.
More information about the systemd-devel
mailing list