From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Installer and luks support. Date: Sun, 09 Dec 2018 00:05:54 +0100 Message-ID: <874lbn7h65.fsf@gnu.org> References: <8736r8kcdp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVlfb-0001Al-2K for guix-devel@gnu.org; Sat, 08 Dec 2018 18:05:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVlfY-0004EX-W3 for guix-devel@gnu.org; Sat, 08 Dec 2018 18:05:58 -0500 In-Reply-To: <8736r8kcdp.fsf@gmail.com> (Mathieu Othacehe's message of "Sat, 08 Dec 2018 10:58:42 +0900") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Mathieu Othacehe Cc: guix-devel Hello, Mathieu Othacehe skribis: > I discovered an issue that also exist in other partitioning modes, and I > don't know how to deal with it. The last step of the installer consists > in: > > * Mount partitions on /mnt (depending on the result of partitioning > step). > * Write the system configuration to /mnt/etc/config.scm > * Start cow-store service > * Run guix system init /mnt/etc/config.scm /mnt > * Unmount /mnt > * Close luks mappings ---> fail, device is busy. > > It fails because at this step, the overlayfs created by cow-store is > still present. To be able to close luks, I have to: > > mkdir /remove-store-overlay > mount --move /gnu/store /remove-store-overlay > herd stop cow-store > herd stop guix-daemon > kill -9 > umount /remove-store-overlay > > Doing so, everything is cleaned-up, and it is possible to restart the > installer and run it again (in case the previous install failed or so). > > Does anyone have a better idea on how to clean-up the overlayfs of > cow-store so that everything can be closed properly? I suppose that if you run =E2=80=9Chalt=E2=80=9D or =E2=80=9Creboot=E2=80= =9D, everything is terminated properly, right? I=E2=80=99m not sure if you should worry beyond that; in general, it=E2=80=99s reasonable to assume that people will reboot when the installation is over, no? Not really answering the question, but rather trying to see if we can sidestep it altogether. ;-) Ludo=E2=80=99.