mhwd-chroot for btrfs | manjaro-chroot for btrfs

The following works for me.

sudo mkdir mnt
sudo mount -o subvol=@ /dev/sdb1 mnt
for i in dev dev/pts sys proc run; do sudo mount --bind /$i mnt/$i; done
sudo chroot mnt

Is it possible to include btrfs or to build it seperately, if it's not already included in

chrootuid
fakechroot
schroot

should be included.

If everything doesn't work, who will build me a nice, secure script? :slight_smile:

Happy weekend :slight_smile:

you can use manjaro-chroot this way

sudo mount -o subvol=@ /dev/sda1 /mnt
manjaro-chroot /mnt

done
or

sudo mount /dev/sda1 /mnt
manjaro-chroot /mnt/@

if you want to install grub
for uefi
you can
mount efi partition before hand
consider
/dev/sda1 is root partition
/dev/sda2 is efi partition

sudo mount /dev/sda1 /mnt
sudo mount /dev/sda2 /mnt/@/boot/efi
manjaro-chroot /mnt/@
grub-install /dev/sda
update-grub
exit
1 Like

cant test while after
exit

exit

for i in run proc sys dev/pts dev; do sudo umount mnt/$i; done

sudo umount mnt

bash tell me target is busy :slight_smile: I have closed nemo, do not know why it is busy.
needed too
sudo rmdir mnt

It need not only mount after chroot I must unmount too.

So I ask for a feature request.

No, I do pacman -Syu for my three OS on sdb. :wink:

only one extra step is needed for manjaro-chroot to work.

sudo mount /dev/sdb1 /mnt
manjaro-chroot /mnt/@
sudo pacman -Syu
exit
sudo umount /dev/sdb1

this should work

1 Like

It is more complicated :wink:
Maybe from first try /home/sgs/ is root the owner, changed to sgs, ok.

On boot sdb1 is mounted, so I try to unmount, work but

~ >>> sudo mount /dev/sdb1 /mnt                                                                                                     
mount: /mnt: /dev/sdb1 ist bereits auf /mnt eingehรคngt.

Boot in sdb1 failed, but btfrs backup restore need 0.1 second to restore :wink:

So I hope for btrfs in mhwd-chroot for simple and secure work. :slight_smile: