[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1072204: marked as done (setupcon: race condition with systemd-tmpfiles)



Your message dated Thu, 20 Jun 2024 07:49:47 +0000
with message-id <E1sKCYF-009Ng4-Aw@fasolo.debian.org>
and subject line Bug#1072204: fixed in console-setup 1.228
has caused the Debian Bug report #1072204,
regarding setupcon: race condition with systemd-tmpfiles
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 owner@bugs.debian.org
immediately.)


-- 
1072204: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1072204
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: console-setup
Version: 1.226
Severity: normal
Tags: patch

Dear Maintainer,

On occasion I have a situation where console-setup.service fails to
start up due to a race condition. After investigating this, it was
already reported in Ubuntu back in 2019 and I have verified that the
patch they have implemented resolves the issue for me:

admin@boxpc001-a8f7693fbff14940ade0e3247b1cea8e:~$ for s in $(systemctl list-units --type service --full --failed --plain --no-legend | cut -f 1 -d ' '); do journalctl --boot --no-pager --unit "${s}"; done
May 28 13:15:05 boxpc001 systemd[1]: Starting console-setup.service - Set console font and keymap...
May 28 13:15:05 boxpc001 console-setup.sh[588]: /usr/bin/setupcon: 999: cannot open /tmp/tmpkbd.hoHrPK: No such file
May 28 13:15:05 boxpc001 systemd[1]: console-setup.service: Main process exited, code=exited, status=1/FAILURE
May 28 13:15:05 boxpc001 systemd[1]: console-setup.service: Failed with result 'exit-code'.
May 28 13:15:05 boxpc001 systemd[1]: Failed to start console-setup.service - Set console font and keymap.

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (400, 'bookworm'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.7.12-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages console-setup depends on:
ii  console-setup-linux     1.226
ii  debconf [debconf-2.0]   1.5.86
ii  keyboard-configuration  1.226
ii  xkb-data                2.41-2

console-setup recommends no packages.

Versions of packages console-setup suggests:
ii  locales                    2.38-11
ii  lsb-base                   11.6
ii  sysvinit-utils [lsb-base]  3.09-1

Versions of packages keyboard-configuration depends on:
ii  debconf [debconf-2.0]   1.5.86
ii  liblocale-gettext-perl  1.07-7
ii  xkb-data                2.41-2

Versions of packages console-setup-linux depends on:
ii  init-system-helpers     1.66
ii  kbd                     2.6.4-2
ii  keyboard-configuration  1.226

console-setup-linux suggests no packages.

Versions of packages console-setup is related to:
pn  console-common        <none>
pn  console-data          <none>
pn  console-tools         <none>
ii  gnome-control-center  1:46.0.1-1
ii  kbd                   2.6.4-2
ii  systemd               255.5-1

-- debconf information:
* keyboard-configuration/optionscode:
  console-setup/use_system_font:
  console-setup/store_defaults_in_debconf_db: true
  debian-installer/console-setup-udeb/title:
  keyboard-configuration/unsupported_config_layout: true
* keyboard-configuration/model: Generic 105-key PC
* keyboard-configuration/store_defaults_in_debconf_db: true
* keyboard-configuration/switch: No temporary switch
* keyboard-configuration/layout:
  keyboard-configuration/unsupported_layout: true
  console-setup/fontsize: 8x16
  console-setup/codeset47: # Latin1 and Latin5 - western Europe and Turkic languages
  console-setup/guess_font:
* keyboard-configuration/layoutcode: us
* keyboard-configuration/altgr: The default for the keyboard layout
  console-setup/fontsize-fb47: 8x16
* keyboard-configuration/xkb-keymap: us
* keyboard-configuration/variantcode:
* keyboard-configuration/toggle: No toggling
* keyboard-configuration/modelcode: pc105
* keyboard-configuration/compose: No compose key
  console-setup/fontface47: Fixed
  console-setup/framebuffer_only:
* keyboard-configuration/other:
  console-setup/fontsize-text47: 8x16
  console-setup/codesetcode: Lat15
* keyboard-configuration/variant: English (US)
  keyboard-configuration/unsupported_options: true
  console-setup/charmap47: UTF-8
  keyboard-configuration/ctrl_alt_bksp: false
  keyboard-configuration/unsupported_config_options: true
diff -Nru console-setup-1.108ubuntu15.4/debian/changelog console-setup-1.108ubuntu15.5/debian/changelog
--- console-setup-1.108ubuntu15.4/debian/changelog	2017-10-05 19:36:07.000000000 +0000
+++ console-setup-1.108ubuntu15.5/debian/changelog	2019-04-10 20:16:29.000000000 +0000
@@ -1,3 +1,13 @@
+console-setup (1.108ubuntu15.5) xenial; urgency=medium
+
+  * setupcon: use /run for tempfiles (and dump the various unnecessary
+    fallback paths), since /run is always mountable rw at least as early as
+    /tmp is and is guaranteed to be safe from tmpcleaners at boot.  Only keep
+    /tmp as a fallback in case we have access to write to /tmp and to a
+    console, but not to /run.  LP: #1824227.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com>  Wed, 10 Apr 2019 13:16:29 -0700
+
 console-setup (1.108ubuntu15.4) xenial; urgency=medium
 
    * Drop dependency from console-setup to initramfs-tools |
diff -Nru console-setup-1.108ubuntu15.4/setupcon console-setup-1.108ubuntu15.5/setupcon
--- console-setup-1.108ubuntu15.4/setupcon	2016-04-04 17:41:49.000000000 +0000
+++ console-setup-1.108ubuntu15.5/setupcon	2019-04-10 20:16:13.000000000 +0000
@@ -56,11 +56,8 @@
     local tmp
     tmp="$TMPFILE"
     if \
-        TMPFILE=`mktemp /tmp/tmpkbd.XXXXXX 2>/dev/null` \
-            || TMPFILE=`mktemp /run/tmpkbd.XXXXXX 2>/dev/null` \
-            || TMPFILE=`mktemp /dev/.tmpkbd.XXXXXX 2>/dev/null` \
-            || TMPFILE=`mktemp /lib/init/rw/tmpkbd.XXXXXX 2>/dev/null` \
-            || TMPFILE=`mktemp 2>/dev/null`
+        TMPFILE=`mktemp /run/tmpkbd.XXXXXX 2>/dev/null` \
+            || TMPFILE=`mktemp /tmp/tmpkbd.XXXXXX 2>/dev/null`
     then
         if [ -z "$tmp" ]; then
             trap 'rm -f "$TMPFILE" >/dev/null 2>&1' 0

--- End Message ---
--- Begin Message ---
Source: console-setup
Source-Version: 1.228
Done: Cyril Brulebois <kibi@debian.org>

We believe that the bug you reported is fixed in the latest version of
console-setup, 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 1072204@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Cyril Brulebois <kibi@debian.org> (supplier of updated console-setup 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 20 Jun 2024 00:43:24 +0200
Source: console-setup
Architecture: source
Version: 1.228
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Cyril Brulebois <kibi@debian.org>
Closes: 1072204 1073857
Changes:
 console-setup (1.228) unstable; urgency=medium
 .
   [ Steve Langasek ]
   * setupcon: use /run for tempfiles (and dump the various unnecessary
     fallback paths), since /run is always mountable rw at least as early as
     /tmp is and is guaranteed to be safe from tmpcleaners at boot.  Only keep
     /tmp as a fallback in case we have access to write to /tmp and to a
     console, but not to /run.  LP: #1824227. Closes: Bug#1072204.
 .
   [ Cyril Brulebois ]
   * Rebuild against newer xkb-data (closes: #1073857), with thanks to
     Christian Stewart for the bug report.
 .
   [ Updated translations ]
   * Georgian (ka.po) by Temuri Doghonadze
   * Portuguese (Brazil) (pt_BR.po) by Adriano Rafael Gomes
Checksums-Sha1:
 847da21eae0aaeaa31fa3e4c77750aee432c83d0 3255 console-setup_1.228.dsc
 27fc2691ed09b1580c0de8a38fe9c92eca21a4d9 3887280 console-setup_1.228.tar.xz
 aa35f144ed4bd857d0df3526e5f10732b8b20000 14240 console-setup_1.228_source.buildinfo
Checksums-Sha256:
 c482f3d3ba9d500e14ea60be8397bbde03eb6247f5f9943688fafa9498823330 3255 console-setup_1.228.dsc
 961a5d87ae06d570c9c1498abe413ea554e563a8d4387feb551404464dea5934 3887280 console-setup_1.228.tar.xz
 a92712469be06a7b8db81946de508e52bacdd0e92026c15dc42f50058e5f046c 14240 console-setup_1.228_source.buildinfo
Files:
 d0ae0c348ff5a8bdd3f8e7460478685a 3255 utils optional console-setup_1.228.dsc
 c3711c8019009964cd3f6b665320e7db 3887280 utils optional console-setup_1.228.tar.xz
 03c7ec7cca349695900b5847d46e7f97 14240 utils optional console-setup_1.228_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCgAuFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmZz2n0QHGtpYmlAZGVi
aWFuLm9yZwAKCRD/kUrwwrNVILwaEACZlJNttZ/GQ0i3lcs76z6XEjehkDWchE1J
4+cWmCH1w20sZVcAnFIPPgDL92xvqfBcrCDVwTNeQS0S5Hi0UZT9KqJR0qN79cyO
8cUEngxMRz+1duHWh+Rkc4SpSiapBs2Ng7+4VCvrwL/+LJwxkzMy5m63RrgKuRcT
83IsPtstRLFp9E96HRjoZX79F25dxxZ8bgsCwyGFh46WDbDUeb2NTIkKqPEjQooY
qO5JQuaNdiWIrzvm5zrhsm0LW9FdTDh6u+3jPGxUldNkkgtsnKqmxek1r84vHmYx
uKmqQJmUelc4biRG7Y4Sl5VbX6yGTG4ncMeFwjPXe2zldjMaGpWmUVD4Odpci/xt
N9YrOCVDYbvKzuOKqiPwDzWMJopsvZRat5GTs8m3tPlLGu6E9V4+UrLbZP+pC2CQ
oSd0yeipBef1GC2yEv6VahAM41+exGXOhHS25LCBDC7s3geK22MEHlQPKApEwvgx
hmnDrQs5qMWiWo6cUdBvjZJLTuV2xiYvWQ1DnI2AEFpRnUDr0fiAIkpjKNmKYBTr
bRB36N4jlQilUfGwA39JzMzOr4QnWhltk6HS2ZN9c/qYbi5R/5OvkymRTJZCDjN7
fRlusxTFgMfEpoxBz5S/80LciS+zqwvncKObEEevHbKiQ13LSO8aIdplcQS8GYRw
xMckvxoa3g==
=4eiz
-----END PGP SIGNATURE-----

Attachment: pgp0lg3iR553e.pgp
Description: PGP signature


--- End Message ---

Reply to: