Your message dated Wed, 30 Aug 2023 18:04:48 +0200
with message-id <ff85189b8a64f9eb91a93a0dde628d3602989435.ca...@43-1.org>
and subject line Re: Bug#1050871: udev: no systemd and LUKS+btrfs makes 
incomplete database
has caused the Debian Bug report #1050871,
regarding udev: no systemd and LUKS+btrfs makes incomplete database
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 ow...@bugs.debian.org
immediately.)


-- 
1050871: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050871
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: udev
Version: 1:252.6-1mx23+1
Severity: normal
X-Debbugs-Cc: frederic.lamo...@gmail.com

Dear Maintainer,

Using MX23 (Debian bookworm based), having a LUKS partition formatted with 
btrfs.

When booting without systemd, some applications that query disks via 
lsblk/libudev do not work
because the report is missing info about FS type and UUID.

It can be seen using command "udevadm info /dev/dm-0" 

Booting with systemd, command reports:

P: /devices/virtual/block/dm-0
M: dm-0
R: 0
U: block
T: disk
D: b 253:0
N: dm-0
L: 0
S: 
disk/by-id/dm-uuid-CRYPT-LUKS2-504a3ccbe6f64593b4f959d010c2d22b-luks-504a3ccb-e6f6-4593-b4f9-59d0
10c2d22b
S: disk/by-label/root
S: mapper/luks-504a3ccb-e6f6-4593-b4f9-59d010c2d22b
S: disk/by-id/dm-name-luks-504a3ccb-e6f6-4593-b4f9-59d010c2d22b
S: disk/by-uuid/d7340ebe-8fd2-457d-92b9-bc7b19c81c47
Q: 2
E: DEVPATH=/devices/virtual/block/dm-0
E: DEVNAME=/dev/dm-0
E: DEVTYPE=disk
E: DISKSEQ=2
E: MAJOR=253
E: MINOR=0
E: SUBSYSTEM=block
E: USEC_INITIALIZED=7446182
E: DM_UDEV_DISABLE_LIBRARY_FALLBACK_FLAG=1
E: DM_UDEV_PRIMARY_SOURCE_FLAG=1
E: DM_UDEV_RULES=1
E: DM_UDEV_RULES_VSN=2
E: DM_ACTIVATION=1
E: DM_NAME=luks-504a3ccb-e6f6-4593-b4f9-59d010c2d22b
E: 
DM_UUID=CRYPT-LUKS2-504a3ccbe6f64593b4f959d010c2d22b-luks-504a3ccb-e6f6-4593-b4f9-59d010c2d22b
E: DM_SUSPENDED=0
E: ID_FS_LABEL=root
E: ID_FS_LABEL_ENC=root
E: ID_FS_UUID=d7340ebe-8fd2-457d-92b9-bc7b19c81c47
E: ID_FS_UUID_ENC=d7340ebe-8fd2-457d-92b9-bc7b19c81c47
E: ID_FS_UUID_SUB=41ae936c-0d24-4aab-9aec-e9ec214961c1
E: ID_FS_UUID_SUB_ENC=41ae936c-0d24-4aab-9aec-e9ec214961c1
E: ID_FS_TYPE=btrfs
E: ID_FS_USAGE=filesystem
E: ID_BTRFS_READY=1
E: SYSTEMD_READY=1
E: 
DEVLINKS=/dev/disk/by-id/dm-uuid-CRYPT-LUKS2-504a3ccbe6f64593b4f959d010c2d22b-luks-504a3ccb-e6f6-
4593-b4f9-59d010c2d22b /dev/disk/by-label/root 
/dev/mapper/luks-504a3ccb-e6f6-4593-b4f9-59d010c2d22b
 /dev/disk/by-id/dm-name-luks-504a3ccb-e6f6-4593-b4f9-59d010c2d22b 
/dev/disk/by-uuid/d7340ebe-8fd2-4
57d-92b9-bc7b19c81c47
E: TAGS=:systemd:
E: CURRENT_TAGS=:systemd:


Booting without systemd, the command reports:

P: /devices/virtual/block/dm-0
M: dm-0
R: 0
U: block
T: disk
D: b 253:0
N: dm-0
L: 0
Q: 2
E: DEVPATH=/devices/virtual/block/dm-0
E: DEVNAME=/dev/dm-0
E: DEVTYPE=disk
E: DISKSEQ=2
E: MAJOR=253
E: MINOR=0
E: SUBSYSTEM=block
E: USEC_INITIALIZED=8727241
E: DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG=1
E: DM_UDEV_DISABLE_DISK_RULES_FLAG=1
E: DM_UDEV_DISABLE_OTHER_RULES_FLAG=1
E: SYSTEMD_READY=0
E: TAGS=:systemd:
E: CURRENT_TAGS=:systemd:


-- Package-specific info:

-- System Information:
Debian Release: 12.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.4.0-2mx-ahs-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages udev depends on:
ii  adduser      3.134
ii  libacl1      2.3.1-3
ii  libblkid1    2.38.1-5+b1
ii  libc6        2.36-9+deb12u1
ii  libcap2      1:2.66-4
ii  libkmod2     30+20221128-1
ii  libselinux1  3.4-1+b6
ii  libudev1     1:252.6-1mx23+1

udev recommends no packages.

udev suggests no packages.

Versions of packages udev is related to:
ii  systemd  1:252.6-1mx23+1

-- Configuration Files:
/etc/init.d/udev changed:
PATH="/sbin:/bin"
NAME="systemd-udevd"
DAEMON="/lib/systemd/systemd-udevd"
DESC="hotplug events dispatcher"
PIDFILE="/run/udev.pid"
CTRLFILE="/run/udev/control"
OMITDIR="/run/sendsigs.omit.d"
TSPLASH="/live/bin/tell-tsplash"
DO_TSPLASH=
[ -x "$TSPLASH" -a -d /live/config/tsplash ] && DO_TSPLASH=true
unmount_devpts() {
  if mountpoint -q /dev/pts/; then
    umount -n -l /dev/pts/
  fi
  if mountpoint -q /dev/shm/; then
    umount -n -l /dev/shm/
  fi
}
mount_devtmpfs() {
  if grep -E -q "^[^[:space:]]+ /dev devtmpfs" /proc/mounts; then
    mount -n -o remount,nosuid,size=$tmpfs_size,mode=0755 -t devtmpfs devtmpfs 
/dev
    return
  fi
  if ! mount -n -o nosuid,size=$tmpfs_size,mode=0755 -t devtmpfs devtmpfs /dev; 
then
    log_failure_msg "udev requires devtmpfs support, not started"
    log_end_msg 1
  fi
  return 0
}
create_dev_makedev() {
  if [ -e /sbin/MAKEDEV ]; then
    ln -sf /sbin/MAKEDEV /dev/MAKEDEV
  else
    ln -sf /bin/true /dev/MAKEDEV
  fi
}
my_tty() {
  [ -x /bin/readlink ] || return 0
  [ -e /proc/self/fd/0 ] || return 0
  readlink --silent /proc/self/fd/0 || true
}
warn_if_interactive() {
  if [ "$RUNLEVEL" = "S" -a "$PREVLEVEL" = "N" ]; then
    return
  fi
  TTY=$(my_tty)
  if [ -z "$TTY" -o "$TTY" = "/dev/console" -o "$TTY" = "/dev/null" ]; then
    return
  fi
  printf "\n\n\nIt has been detected that the command\n\n\t$0 $*\n\n"
  printf "has been run from an interactive shell.\n"
  printf "It will probably not do what you expect, so this script will wait\n"
  printf "60 seconds before continuing. Press ^C to stop it.\n"
  printf "RUNNING THIS COMMAND IS HIGHLY DISCOURAGED!\n\n\n\n"
  sleep 60
}
make_static_nodes() {
  [ -e /lib/modules/$(uname -r)/modules.devname ] || return 0
  [ -x /bin/kmod ] || return 0
  /bin/kmod static-nodes --format=tmpfiles --output=/proc/self/fd/1 | \
  while read type name mode uid gid age arg; do
    [ -e $name ] && continue
    case "$type" in
      c|b|c!|b!) mknod -m $mode $name $type $(echo $arg | sed 's/:/ /') ;;
      d|d!) mkdir $name ;;
      *) echo "unparseable line ($type $name $mode $uid $gid $age $arg)" >&2 ;;
    esac
    if [ -x /sbin/restorecon ]; then
      /sbin/restorecon $name
    fi
  done
}
[ -x $DAEMON ] || exit 0
tmpfs_size="10M"
if [ -e /etc/udev/udev.conf ]; then
  . /etc/udev/udev.conf
fi
. /lib/lsb/init-functions
if [ ! -e /proc/filesystems ]; then
  log_failure_msg "udev requires a mounted procfs, not started"
  log_end_msg 1
fi
if ! grep -q '[[:space:]]devtmpfs$' /proc/filesystems; then
  log_failure_msg "udev requires devtmpfs support, not started"
  log_end_msg 1
fi
if [ ! -d /sys/class/ ]; then
  log_failure_msg "udev requires a mounted sysfs, not started"
  log_end_msg 1
fi
if [ ! -w /sys ]; then
  log_warning_msg "udev does not support containers, not started"
  exit 0
fi
if [ -d /sys/class/mem/null -a ! -L /sys/class/mem/null ] || \
   [ -e /sys/block -a ! -e /sys/class/block ]; then
  log_warning_msg "CONFIG_SYSFS_DEPRECATED must not be selected"
  log_warning_msg "Booting will continue in 30 seconds but many things will be 
broken"
  sleep 30
fi
case "$1" in
    start)
    if [ ! -e "/run/udev/" ]; then
        warn_if_interactive
    fi
    if [ -w /sys/kernel/uevent_helper ]; then
        echo > /sys/kernel/uevent_helper
    fi
    if ! mountpoint -q /dev/; then
        unmount_devpts
        mount_devtmpfs
        [ -d /proc/1 ] || mount -n /proc
    fi
    make_static_nodes
    # clean up parts of the database created by the initramfs udev
    udevadm info --cleanup-db
    # set the SELinux context for devices created in the initramfs
    [ -x /sbin/restorecon ] && /sbin/restorecon -R /dev
    log_daemon_msg "Starting $DESC" "$NAME"
    if start-stop-daemon --start --name $NAME --user root --quiet \
        --pidfile $PIDFILE --exec $DAEMON --background --make-pidfile \
        --notify-await; then
        # prevents udevd to be killed by sendsigs (see #791944)
        mkdir -p $OMITDIR
        ln -sf $PIDFILE $OMITDIR/$NAME
        log_end_msg $?
    else
        log_warning_msg $?
        log_warning_msg "Waiting 15 seconds and trying to continue anyway"
        sleep 15
    fi
    log_action_begin_msg "Synthesizing the initial hotplug events (subsystems)"
    if udevadm trigger --type=subsystems --action=add; then
        log_action_end_msg $?
    else
        log_action_end_msg $?
    fi
    log_action_begin_msg "Synthesizing the initial hotplug events (devices)"
    if udevadm trigger --type=devices --action=add; then
        log_action_end_msg $?
    else
        log_action_end_msg $?
    fi
    create_dev_makedev
    
    # clear the tsplash screen to avoid artifacts when kms kicks in
    clear_ts=/live/bin/clear-tsplash
    [ "$DO_TSPLASH" -a -x $clear_ts ] && $clear_ts
    # wait for the systemd-udevd childs to finish
    log_action_begin_msg "Waiting for /dev to be fully populated"
    if udevadm settle; then
        log_action_end_msg 0
    else
        log_action_end_msg 0 'timeout'
    fi
    [ "$DO_TSPLASH" ] && $TSPLASH udev-end
    ;;
    stop)
    log_daemon_msg "Stopping $DESC" "$NAME"
    if start-stop-daemon --stop --name $NAME --user root --quiet \
        --pidfile $PIDFILE --remove-pidfile --oknodo --retry 5; then
        # prevents cryptsetup/dmsetup hangs (see #791944)
        rm -f $CTRLFILE
        log_end_msg $?
    else
        log_end_msg $?
    fi
    ;;
    restart)
    log_daemon_msg "Stopping $DESC" "$NAME"
    if start-stop-daemon --stop --name $NAME --user root --quiet \
        --pidfile $PIDFILE --remove-pidfile --oknodo --retry 5; then
        # prevents cryptsetup/dmsetup hangs (see #791944)
        rm -f $CTRLFILE
        log_end_msg $?
    else
        log_end_msg $? || true
    fi
    log_daemon_msg "Starting $DESC" "$NAME"
    if start-stop-daemon --start --name $NAME --user root --quiet \
        --pidfile $PIDFILE --exec $DAEMON --background --make-pidfile \
        --notify-await; then
        # prevents udevd to be killed by sendsigs (see #791944)
        mkdir -p $OMITDIR
        ln -sf $PIDFILE $OMITDIR/$NAME
        log_end_msg $?
    else
        log_end_msg $?
    fi
    ;;
    reload|force-reload)
    udevadm control --reload-rules
    ;;
    status)
    status_of_proc $DAEMON $NAME && exit 0 || exit $?
    ;;
    *)
    echo "Usage: /etc/init.d/udev 
{start|stop|restart|reload|force-reload|status}" >&2
    exit 1
    ;;
esac
exit 0


-- no debconf information

--- End Message ---
--- Begin Message ---
Hi,

On Wed, 2023-08-30 at 11:44 -0400, Frederic wrote:
> Package: udev
> Version: 1:252.6-1mx23+1
> [...]
> Using MX23 (Debian bookworm based), having a LUKS partition formatted
> with btrfs.

Please report issues with MX Linux at their place.  The upstream
version doesn't match what Debian ships and the existence of an epoch
indicates they probably do invasive changes.

(Even if packages were identical to Debian, please either reproduce the
bug on Debian or report them to the derivative you are using.)

Ansgar

--- End Message ---

Reply via email to