You are not logged in.

#1 2015-08-24 12:45:09

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

<Closed> Schroot: End Session fails

I am having Debian Stable in the chroot environment under Arch.

Editing the /etc/default/schroot

# Action to perform when the service is stopped.  By default, we do
# nothing (set to "none").  If all sessions should be automatically
# ended, set to "end".  If this is set to "none", START_ACTION should
# probably be set to "recover" to avoid broken sessions on restart.
#STOP_ACTION="none"
STOP_ACTION="end"

# What do we want to do with "orphan" sessions when starting or
# restarting?  Recover them (leave empty or set to "recover") or just
# end them (set to "end")?
#START_ACTION="recover"
START_ACTION="end"

This fails to end the session.


The regular user fails to end the session:

$ schroot -e --all-sessions
E: Access not authorised
I: You do not have permission to access the schroot service.
I: This failure will be reported.

Root user cannot even end a session:

# schroot -e --all-sessions
E: 10mount: umount: /var/lib/schroot/mount/jessie_1-0d2ddd34-3755-4af4-8f50-645d316e0fd5/run/lock: target is busy
E: 10mount:         (In some cases useful info about processes that
E: 10mount:          use the device is found by lsof(8) or fuser(1).)
E: jessie_1-0d2ddd34-3755-4af4-8f50-645d316e0fd5: Chroot setup failed: stage=setup-stop

Kindly inform what is possible.
Thanks in advance.

Last edited by makh (2017-01-28 04:12:44)


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

Offline

#2 2015-08-27 20:30:17

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

Re: <Closed> Schroot: End Session fails

The only probable solution seems to be is umount forced.

Can

umount -l <partition>

be implemented somehow to automatically end a chrooted session, under schroot?


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

Offline

#3 2015-08-27 20:43:20

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: <Closed> Schroot: End Session fails

I must admit that I have no idea if you can boot a non-EFI Windows system using GRUB from an EFI GNU/Linux system.

You could select the drives from your firmware menus; it's far from ideal but it should work.

EDIT: Sorry, I have no idea what happened there -- I didn't mean to reply to this thread hmm

EDIT2: Have you tried systemd-nspawn?
https://wiki.archlinux.org/index.php/Systemd-nspawn

I use that for my Debian containers and it works really well.

Last edited by Head_on_a_Stick (2015-08-27 20:47:09)


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB