From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 42543138359 for ; Sat, 1 Aug 2020 15:45:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA76EE0A65; Sat, 1 Aug 2020 15:45:34 +0000 (UTC) Received: from smarthost03b.mail.zen.net.uk (smarthost03b.mail.zen.net.uk [212.23.1.21]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6194DE0936 for ; Sat, 1 Aug 2020 15:45:34 +0000 (UTC) Received: from [89.238.139.57] (helo=localhost) by smarthost03b.mail.zen.net.uk with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1k1thU-00061P-IT for gentoo-user@lists.gentoo.org; Sat, 01 Aug 2020 15:45:32 +0000 Date: Sat, 1 Aug 2020 16:45:50 +0100 From: jdm To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] custom mount fstab Message-ID: <20200801164550.6c5e476b@jdm.myzen.co.uk> In-Reply-To: <225e0df9-70d0-3e06-b6bd-45eaad98c56e@googlemail.com> References: <87861e59-3807-63ae-57ac-2f1ecffe45a1@googlemail.com> <1769074.tdWV9SEqCh@lenovo.localdomain> <225e0df9-70d0-3e06-b6bd-45eaad98c56e@googlemail.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-smarthost03b-IP: [89.238.139.57] Feedback-ID: 89.238.139.57 X-Archives-Salt: 2d1f752b-83bb-4562-9a12-4e08a6378b48 X-Archives-Hash: bdfec18093d07806078cbe0e1f454e9a On Fri, 3 Jul 2020 16:33:42 +0200 Tamer Higazi wrote: > Thanks Michael! > > I'll give it a try. > > > best, Tamer > > Am 3 Jul 2020 um 15:46 schrieb Michael: > > On Friday, 3 July 2020 14:33:52 BST Tamer Higazi wrote: > >> Hi people, > >> > >> I had a problem with docker on gentoo and found the solution for > >> all my > >> > >> problems with a custom mount command: > >> |sudo mount -t cgroup -o none,name=systemd cgroup > >> /sys/fs/cgroup/systemd > >> > >> Can anybody of you tell me how to add that one in /etc/fstab file ? > >> best, Tamer | > > I haven't used cgroups or docker, but if your mount command above > > is correct, I assume something like this ought to work as far as > > fstab is concerned: > > > > cgroup /sys/fs/cgroup/systemd cgroup none,name=systemd 0 1 > > > Hi, Not sure if this may help but there is a library which you can install called dev-libs/libcgroup which has an init program /etc/init.d/cgconfig In the config file /etc/cgroup/cgconfig I have mount { "name=systemd" = /sys/fs/cgroup/systemd; } which allows lxd containers to run using systemd Not sure if this what you are after but maybe of use. It allows me to run Arch linux containers in Gentoo. John