Package: dmraid Version: 1.0.0.rc16-8+b1 Followup-For: Bug #990188 Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? Installing dmraid in a docker container fails in postinst scriptlet (/sys readonly) * What exactly did you do (or not do) that was effective (or ineffective)? apt-get install dmraid * What was the outcome of this action? Failed to write 'change' to '/sys/devices/pci0000:00/0000:00:02.0/virtio1/block/vda/uevent': Read-only file system * What outcome did you expect instead? no error * Solution: postinstall runs udevadm trigger --subsystem-match=block --action=change but it does without checking that it is not running in a container or at least that /sys is writable. udevadm trigger should only run on true system. (no chrooted env, no container, ...) *** End of the template - remove these template lines *** -- Package-specific info: --- dmraid -r -vvv output WARN: locking /var/lock/dmraid/.lock no block devices found WARN: unlocking /var/lock/dmraid/.lock --- dmraid -s -vv output no block devices found --- /proc/partitions: major minor #blocks name 1 0 65536 ram0 1 1 65536 ram1 1 2 65536 ram2 1 3 65536 ram3 1 4 65536 ram4 1 5 65536 ram5 1 6 65536 ram6 1 7 65536 ram7 1 8 65536 ram8 1 9 65536 ram9 1 10 65536 ram10 1 11 65536 ram11 1 12 65536 ram12 1 13 65536 ram13 1 14 65536 ram14 1 15 65536 ram15 254 0 62499840 vda 254 1 62498816 vda1 --- initrd.img-5.10.47-linuxkit: --- /proc/modules: --- /proc/cmdline earlyprintk=serial page_poison=1 vsyscall=emulate panic=1 nospec_store_bypass_disable noibrs noibpb no_stf_barrier mitigations=off console=ttyS0 console=ttyS1 vpnkit.connect=connect://2/1999 -- System Information: Debian Release: 11.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.47-linuxkit (SMP w/4 CPU threads) Kernel taint flags: TAINT_OOT_MODULE, TAINT_RANDSTRUCT Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /bin/dash Init: unable to detect Versions of packages dmraid depends on: ii dmsetup 2:1.02.175-2.1 ii libc6 2.31-13+deb11u2 ii libdmraid1.0.0.rc16 1.0.0.rc16-8+b1 ii libselinux1 3.1-3 ii libsepol1 3.1-1 ii udev 247.3-6 dmraid recommends no packages. dmraid suggests no packages. -- no debconf information