Questa parte su Ubuntu con filesystem Btrfs non funziona, questo perché Ubuntu crea i subvolumi di default.
Sono due le opzioni:
1)
(In questo modo si può lasciare il comando chroot in quel modo, consigliato)
2) lasciare il mount in quel modo, specificare su btrfs la radice di Ubuntu:
Per semplificare:
Se si sceglie
l'opzione 1 (opzione che consiglio):
(
Il mount del subvolume è specifco per Ubuntu fino alla 20.04, essendo la wiki di Ubuntu credo che vada bene non specificarlo)
Per
l'opzione 2:
Specifico per Btrfs:
Se si sceglie questa opzione, anche i mount bind si devono modificare:
Quindi credo che l'opzione 1 sia migliore.
Altra precisazione; l'opzione
-t btrfs non è specifico per btrfs, ma per qualsiasi filesystem, ed è consigliato specificare il filesystem come specificato dal
man di mount:
If no -t option is given, or if the auto type is specified, mount will try to guess the desired type. Mount uses the blkid or volume_id library for guessing the filesystem type; if that does not turn up anything that looks familiar, mount will try to read the file /etc/filesystems, or, if that does not exist, /proc/filesystems. All of the filesystem types listed there will be tried, except for those that are labeled "nodev" (e.g., devpts, proc and nfs). If /etc/filesystems ends in a line with a single * only, mount will read /proc/filesystems afterwards.
The auto type may be useful for user-mounted floppies. Creating a file /etc/filesystems can be useful to change the probe order (e.g., to try vfat before msdos or ext3 before ext2) or if you use a kernel module autoloader. Warning: the probing uses a heuristic (the presence of appropriate 'magic'), and could recognize the wrong filesystem type, possibly with catastrophic consequences. If your data is valuable, don't ask mount to guess.