[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: switch_root usage
From: Baruch Siach <baruch () tkos ! co ! il>
Date: 2018-06-24 17:12:40
Message-ID: 20180624171240.sloh4aklvpe3ckto () tarshish
[Download RAW message or body]
Hi Mike, James,
On Sun, Jun 24, 2018 at 10:54:43AM -0600, James Bowlin wrote:
> On Sun, Jun 24, 2018 at 12:20 PM, MikeB said:
> > Am I correct in unmounting/switch_root/re-mounting for these
> > filesystems?
>
> I mount them all again under the new root directory before I
> switch_root. I imagine mounting them after switch_root would
> work too. Doing it before allows me to chroot before I
> switch_root. I only bother with umounting /dev/pts/. I would
> be surprised if switch_root moved or remounted the pseudo
> filesystems for you automatically.
Another option is to 'mount --move' the mounted filesystems from initramfs
mount points to their final locations under your block device rootfs.
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic