Your message dated Fri, 06 Mar 2026 20:34:52 +0000
with message-id <[email protected]>
and subject line Bug#1094739: fixed in schroot 1.6.13-8
has caused the Debian Bug report #1094739,
regarding schroot: 10mount fails on lock directory creation
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1094739: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1094739
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: schroot
Version: 1.6.13-3+b2
Severity: important
Tags: patch
X-Debbugs-Cc: [email protected], [email protected]
Hello!
In case of multiple schroot processes checking for lock directory
presence at the same time more then one process can try to create this
directory. It happens because checking itself is not atomic:
(etc/setup.d/10mount, function do_umount_all)
```
if [ -e /var/lock/schroot ]; then
if [ ! -d /var/lock/schroot ]; then
error "/var/lock/schroot is not a directory"
exit 1
fi
else
mkdir -m 0700 /var/lock/schroot
fi
```
This will result in the following error:
| E: 10mount: mkdir: cannot create directory '/var/lock/schroot': File exists
To prevent second process fail on mkdir of already created lock
directory (and also allow creation of subfolders if not exist)
option -p can be added to mkdir command.
Pull request with the patch was sent to upstream repo:
https://codeberg.org/shelter/reschroot/pulls/12
-- System Information:
Debian Release: 12.8
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64
Kernel: Linux 6.11.5+bpo-amd64 (SMP w/32 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Versions of packages schroot depends on:
ii debconf [debconf-2.0] 1.5.82
ii libboost-filesystem1.74.0 1.74.0+ds1-21
ii libboost-iostreams1.74.0 1.74.0+ds1-21
ii libboost-program-options1.74.0 1.74.0+ds1-21
ii libc6 2.36-9+deb12u9
ii libgcc-s1 12.2.0-14
ii libpam0g 1.5.2-6+deb12u1
ii libstdc++6 12.2.0-14
ii libuuid1 2.38.1-5+deb12u2
ii schroot-common 1.6.13-3
ii sysvinit-utils [lsb-base] 3.06-4
schroot recommends no packages.
Versions of packages schroot suggests:
pn aufs-tools | unionfs-fuse <none>
pn btrfs-progs <none>
ii bzip2 1.0.8-5+b1
ii debootstrap 1.0.128+nmu2+deb12u1
pn lvm2 <none>
ii qemu-user-static 1:7.2+dfsg-7+deb12u7
ii xz-utils 5.4.1-0.2
pn zfsutils-linux <none>
ii zstd 1.5.4+dfsg2-5
-- debconf information:
schroot/bad-names:
>From 96e9404437efb826a0e81b36560b4430922616e6 Mon Sep 17 00:00:00 2001
From: Anton Mikanovich <[email protected]>
Date: Mon, 2 Dec 2024 08:10:00 +0100
Subject: [PATCH] 10mount: Protect from races on do_umount_all
In case of multiple schroot processes checking for lock directory
presence at the same time more then one process can try to create this
directory. It happens because checking itself is not atomic.
This will result in the following error:
| E: 10mount: mkdir: cannot create directory '/var/lock/schroot': File exists
To prevent second process fail on mkdir of already created lock
directory (and also allow creation of subfolders if not exist) add -p
option to the command.
Signed-off-by: Anton Mikanovich <[email protected]>
---
etc/setup.d/10mount | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/etc/setup.d/10mount b/etc/setup.d/10mount
index 5e734050..9fb8093a 100755
--- a/etc/setup.d/10mount
+++ b/etc/setup.d/10mount
@@ -83,7 +83,7 @@ do_umount_all()
exit 1
fi
else
- mkdir -m 0700 /var/lock/schroot
+ mkdir -m 0700 -p /var/lock/schroot
fi
if [ "$(stat -c "%u %g %a" /var/lock/schroot)" != "0 0 700" ]; then
--
2.39.5
--- End Message ---
--- Begin Message ---
Source: schroot
Source-Version: 1.6.13-8
Done: Christoph Biedl <[email protected]>
We believe that the bug you reported is fixed in the latest version of
schroot, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Christoph Biedl <[email protected]> (supplier of updated schroot
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Mon, 05 May 2025 08:05:35 +0200
Source: schroot
Architecture: source
Version: 1.6.13-8
Distribution: unstable
Urgency: medium
Maintainer: Christoph Biedl <[email protected]>
Changed-By: Christoph Biedl <[email protected]>
Closes: 1008616 1094739 1101658 1102156 1104692 1110659 1113487 1127026 1129698
Changes:
schroot (1.6.13-8) unstable; urgency=medium
.
* Update Portuguese translation, thanks Pedro Ribeiro.
Closes: #1102156
* Add Canalan debconf translation, thanks Carles Pina i Estany.
Closes: #1101658
* Avoid lockfile directory creation race, thanks Anton Mikanovich.
Closes: #1094739
* Add mount to build dependencies to loopback support.
Closes: #1104692
* Make ZFS snapshot removal more robust, thanks Florian Ernst.
Closes: #1008616
* Fix build with CMake 4, thanks Graham Inggs for collecting
these and the following ones. Closes: #1113487
* Fix build with Boost 1.85 and 1.89. Closes: #1110659, #1127026
* Add swedish DebConf translation, thanks Daniel Nylander.
Closes: #1129698
Checksums-Sha1:
013f33c928c859cf03dc16d04b07191dc886978d 2218 schroot_1.6.13-8.dsc
4df8cf6c10c0c6fe6be683c683df0b7452ad5b0f 122288 schroot_1.6.13-8.debian.tar.xz
815aaae3aa12b8193526bd02d3476f2e002fc638 8553
schroot_1.6.13-8_powerpc.buildinfo
Checksums-Sha256:
28d5d408dbc65f72e217ef77c20fdd4b0e9620fde412c765b455ecf914dbdc2b 2218
schroot_1.6.13-8.dsc
69f35c8264b62474fd85a206ecdc0e40410212c8bfa9f92a56afbf652d78f1f0 122288
schroot_1.6.13-8.debian.tar.xz
5df48474b576e7ba397a9084a69274fdb8378b1be1779e33bdaf43a806bc5410 8553
schroot_1.6.13-8_powerpc.buildinfo
Files:
a9eaa15ca7cc6e252d25a89fa8e44381 2218 admin optional schroot_1.6.13-8.dsc
81a984f1eeef405499d60a6e1fbb7f15 122288 admin optional
schroot_1.6.13-8.debian.tar.xz
203dc5ae291abdb57c7984d3572767e9 8553 admin optional
schroot_1.6.13-8_powerpc.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEWXMI+726A12MfJXdxCxY61kUkv0FAmmrGRAACgkQxCxY61kU
kv3DeQ//Z+tadri6hp+mdZseroa5cwS/Q4sLb2ocPgGbMq4B/BS7txQ+DFc07oUc
iTdSgQPTAm4bwpi/GnkDj3EPFR5Mowbrdp6nnAhKdxwxAsn9qMv2GOcb74xgwh8s
YUNBG66QEmSgsus2WXdJ4qgAm8uq7hjrLzykJvY7/X0ABVsbYWl5659BGG6nuONt
5qflWAyC/Me1kCOh/nPo+DFXdOMyWBVldiSDsjHFqUiQB9LNDYPWT46SAM8Mbzyp
38HS5ji11KstCDKauK23hAYcZ25baY3yEXErvmB/Bk4bahTe3l56kvMgIp6Hwib9
oyIAJsJSvd9DoGB9QFn4mffkViy4FNbRsvxJu4WewxmUo56Lt+Yuct1tkGA1j7W+
RiLuI1Y2JWAWUZY7mNrFucI5RfXHWt2JctSEb4cZroSflySBoLRMlf7jjOULlGPf
bgo87UGBIu4cxd8Klld47TO/q7vUJ9tTnzEsThedA8c33szAm4CzYPTpivI8c/gJ
fqOpm5d4sSIM2fF3/C1hFTaZzLNj1Z8ablraVv5YGf0giDH5kFXK+Kg7kLHenKmv
f40AwnTpi3o5VaRSA1jzT+KVgW1H/faX8s4XxDT8U/lpQhgmgMu7mNwY41rLHH2F
tUFrx8pXrcsLIUUAn+JIg08NlbQY/pPIzy5NwHEe/xth8Tj1Wn0=
=ru3p
-----END PGP SIGNATURE-----
pgpWWOdSqHGjt.pgp
Description: PGP signature
--- End Message ---