You are not logged in.

#1 2017-01-28 03:43:27

makh
Member
Registered: 2011-10-10
Posts: 305

<SOLVED> Schroot configuration

Hi

I am having this issue that on logout / exit from the chroot environment, the "mount points" do not get umount automatically. Is there some specific configuration for this?

 mount |grep ubuntu1
/dev/sda5 on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a type ext4 (rw,relatime,data=ordered)
/dev/sda5 on /run/schroot/mount/stretch1-54764c7a-587e-41d8-bb95-34682fef6dea/run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a type ext4 (rw,relatime,data=ordered)
/dev/sda5 on /run/schroot/mount/stretch2-f936a67e-c48e-4926-ad06-c6ce0ce062b6/run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a type ext4 (rw,relatime,data=ordered)
/dev/sda5 on /run/schroot/mount/stretch2-5ad61715-b5ab-484c-912b-69232d41744f/run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a type ext4 (rw,relatime,data=ordered)
/dev/sda5 on /run/schroot/mount/stretch1-6cbe98a2-b48e-4c0a-ba39-029e12713ce3/run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a type ext4 (rw,relatime,data=ordered)
/dev/sda5 on /run/schroot/mount/stretch1-c553d5d4-5c68-48b4-831b-972d3849cdbf/run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a type ext4 (rw,relatime,data=ordered)
/dev/sda5 on /run/schroot/mount/stretch2-51933b1b-4f3a-4ba5-a55d-3038d49d4039/run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a type ext4 (rw,relatime,data=ordered)
proc on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/dev type devtmpfs (rw,nosuid,relatime,size=1955432k,nr_inodes=488858,mode=755)
devpts on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/tmp type tmpfs (rw,nosuid,nodev)
/dev/sda3 on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/var/lib/dbus type ext4 (rw,relatime,data=ordered)
run on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
run on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/run/lock type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda5 on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/run/schroot/mount/stretch2-adc41f3d-6ae2-4270-bdb6-b6d7547c14c2 type ext4 (rw,relatime,data=ordered)
devpts on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
run on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/run/lock type tmpfs (rw,nosuid,nodev,relatime,mode=755)
run on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/run/lock type tmpfs (rw,nosuid,nodev,relatime,mode=755)
tmpfs on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/dev/shm type tmpfs (rw,nosuid,nodev)
run on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/run/shm type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda5 on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/run/schroot/mount/stretch2-63185160-506b-4e57-a229-05c8fd0d2a24 type ext4 (rw,relatime,data=ordered)
devpts on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
run on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/run/lock type tmpfs (rw,nosuid,nodev,relatime,mode=755)
run on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/run/lock type tmpfs (rw,nosuid,nodev,relatime,mode=755)
run on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/run/lock type tmpfs (rw,nosuid,nodev,relatime,mode=755)
run on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/run/lock type tmpfs (rw,nosuid,nodev,relatime,mode=755)
tmpfs on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/dev/shm type tmpfs (rw,nosuid,nodev)
run on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/run/shm type tmpfs (rw,nosuid,nodev,relatime,mode=755)
run on /run/schroot/mount/ubuntu1-8cc5adae-f629-4dc4-8dbd-c28c06296b8a/run/shm type tmpfs (rw,nosuid,nodev,relatime,mode=755)

I am using all the builtin default functionality/configuration of the schroot.

Last edited by makh (2017-08-12 00:21:44)


OS:  Arch  &/  Debian
System: LENOVO ThinkPad E14
Desktop: Xfce

Offline

#2 2017-01-28 12:35:59

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: <SOLVED> Schroot configuration

You haven't provide much to go on.
1) Verify you are running this on Arch and not Ubuntu
2) Post /etc/schroot/schroot.conf
3) Share how you're starting the chroot and if systemd post the unit you created

Offline

#3 2017-01-28 19:48:02

makh
Member
Registered: 2011-10-10
Posts: 305

Re: <SOLVED> Schroot configuration

Hi graysky!

graysky wrote:

You haven't provide much to go on.
1) Verify you are running this on Arch and not Ubuntu
2) Post /etc/schroot/schroot.conf
3) Share how you're starting the chroot and if systemd post the unit you created

# uname -r

4.8.13-1-ARCH

snippet of /etc/schroot/schroot.conf for ubuntu only:

#
#
#       UBUNTU  STABLE DESKTOP - 1:
#
#    64 - BIT
#
[ubuntu1]
description= Contains out of repo programs for Security
aliases=ub1
type=directory
directory=/mnt/hdd/sda7ex4/srv/chroot/ubst
users=my-local-user,root
#groups=users
root-groups=root
personality=linux
preserve-environment=true
profile=my_profile/ub1

Share how you're starting the chroot

schroot -c ub1

if systemd post the unit you created

I have no idea on this part... let me check it out.

Please confirm: When you exit the schroot session, nothing remains mounted?


OS:  Arch  &/  Debian
System: LENOVO ThinkPad E14
Desktop: Xfce

Offline

#4 2017-08-12 00:21:21

makh
Member
Registered: 2011-10-10
Posts: 305

Re: <SOLVED> Schroot configuration

The problem is resolved, now, with:

1) 4.11.9-1-ARCH
2) schroot 1.6.10-16


OS:  Arch  &/  Debian
System: LENOVO ThinkPad E14
Desktop: Xfce

Offline

Board footer

Powered by FluxBB