I need the whole day, but is not in bullseye. I created a chroot for it, just to protect my host from garbage in its filesystem (the installation itself) -- strictly spoken, I do not need the protection of the host filesystem from the chroot, I want to access nearly all (homedir/net mounts - came not that far).
I tried to follow the instructions I found for schroot, but it does not work for me - instructions in the internet describe different settings, like own subdir for each chroot, with its own 'fstab', for example.
My example/setup changed nothing else (so "default" fstab from schroot subdirs should apply).
In the existing 'schroot.conf', everything is a comment and I added:
Code: Select all
[buster-test]
description=Run nomacs from buster
type=directory
directory=/opt/apps/deb10-apps
users=mbu
root-groups=root
profile=desktop
personality=linux
preserve-environment=true
Code: Select all
$ schroot -l
chroot:buster-test
mounted at: '/opt/apps/deb10-apps/'
Code: Select all
ls /opt/apps/
drwxrwxrwx 18 root root 24 2023-06-08 17:51:01 deb10-apps/
Using chroot as root:
'chroot /opt/apps/deb10-apps/ bash'
I can see:
Code: Select all
(buster-test)root@mtx:/# cat /etc/issue
Debian GNU/Linux 10 \n \l
From my user, I started:
Code: Select all
schroot -c buster-test
and this raises errors:
>W: Failed to change to directory ‘/home/mbu/work’: No such file or directory
I: The directory does not exist inside the chroot. Use the --directory option to run the command in a different directory.
W: Falling back to directory ‘/home/mbu’
issuing 'pwd' says: '/home/mbu', but 'ls -al' shows nothing, ls ..
Code: Select all
(buster-test)mbu@mtx:~$ ls -al
total 10
drwxr-xr-x 2 root root 2 Jul 21 09:28 .
drwxr-xr-x 11 root root 12 Jul 25 13:20 ..
(buster-test)mbu@mtx:~$ ls -al ..
total 52
drwxr-xr-x 11 root root 12 Jul 25 13:20 .
drwxrwxrwx 18 root root 24 Jun 8 17:51 ..
drwxr-xr-x 2 root root 2 Jan 2 2023 mbt
drwxr-xr-x 2 root root 2 Jul 21 09:28 mbu
lrwxrwxrwx 1 root mbg-adm 6 Sep 28 2022 root -> /root/
drwxr-xr-x 2 root root 2 Oct 10 2022 shared
Code: Select all
(buster-test)mbu@mtx:~$ mount
combopool/apps/deb10-apps on / type zfs (rw,xattr,posixacl)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=32842992k,nr_inodes=8210748,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
syspool/home on /home type zfs (rw,xattr,posixacl)
syspool/tmp on /tmp type zfs (rw,xattr,posixacl)
syspool/ROOT/debian on /var/lib/dbus type zfs (rw,xattr,posixacl)
I would not know a way to start the app (with its necesary environment)
from the chroot or even a container (container as VM is easy).
Regards,
Manfred