lkml.org 
[lkml]   [2015]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [GIT PULL] kdbus for 4.1-rc1
Am 16.04.2015 um 14:15 schrieb Olaf Hering:
> On Thu, Apr 16, Tom Gundersen wrote:
>
>> to a shutdown PID 1 process and finally a transition back to
>> the initial ramdisk so that we can unmount the root file system even.
>
> Is that wishful thinking or actually implemented somewhere?

This is done on any system, which uses dracut and systemd for a long time now.

As SUSE switched to dracut recently, it should be the same as on RHEL-7/Fedora
now.

If /run/initramfs/shutdown exists and is executable,
/usr/lib/systemd/systemd-shutdown switches root to /run/initramfs/ and executes
shutdown.

The shutdown script umounts the old real root (after umounting
/oldroot/{proc,sys,run,dev}), then if the old real root was living on an
assembled device, like mdraid, the device is disassembled and waited for the
device to be clean.

See
http://git.kernel.org/cgit/boot/dracut/dracut.git/tree/modules.d/99shutdown/shutdown.sh
and for example for mdraid:
http://git.kernel.org/cgit/boot/dracut/dracut.git/tree/modules.d/90mdraid/md-shutdown.sh

This solved quite a lot of problems for unsynced raids.


\
 
 \ /
  Last update: 2015-04-16 15:21    [W:0.204 / U:1.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site