Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964867AbbDPMnU (ORCPT ); Thu, 16 Apr 2015 08:43:20 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:36567 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754500AbbDPMnN (ORCPT ); Thu, 16 Apr 2015 08:43:13 -0400 Message-ID: <552FAE5E.90906@gmail.com> Date: Thu, 16 Apr 2015 14:43:10 +0200 From: Harald Hoyer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Olaf Hering , Tom Gundersen CC: Jiri Kosina , Greg Kroah-Hartman , Andy Lutomirski , Linus Torvalds , Andrew Morton , Arnd Bergmann , "Eric W. Biederman" , One Thousand Gnomes , "linux-kernel@vger.kernel.org" , Daniel Mack , David Herrmann , Djalal Harouni Subject: Re: [GIT PULL] kdbus for 4.1-rc1 References: <20150415084812.GG16381@kroah.com> <20150415122555.74258d63@lxorguk.ukuu.org.uk> <20150415154551.GE6801@home.goodmis.org> <20150415163520.GA25105@kroah.com> <20150415130649.6f9ab20f@gandalf.local.home> <20150415173145.GA26146@kroah.com> <20150415225611.0c256ea6@lxorguk.ukuu.org.uk> <552F8F97.3040208@zonque.org> <20150416121505.GA16978@aepfle.de> In-Reply-To: <20150416121505.GA16978@aepfle.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1343 Lines: 33 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/