Package: debootstrap Version: 1.0.141 I've encountered an odd issue with debootstrap, when running inside a rootless Podman container environment: The /dev/null device in the resulting chroot is actually a non-empty regular file.
# debootstrap --force-check-gpg --arch=amd64 noble test-ubuntu-noble-amd64 http://apt.example.com/ubuntu I: Retrieving InRelease I: Checking Release signature I: Valid Release signature (key id F6ECB3762474EDA9D21B7022871920D1991BC93C) I: Retrieving Packages [...] I: Extracting util-linux... I: Extracting zlib1g... W: Could not create /dev/ptmx, falling back to symlink. This chroot will require /dev/pts mounted with ptmxmode=666 I: Installing core packages... I: Unpacking required packages... [...] I: Configuring ca-certificates... I: Base system installed successfully. # ls -l test-ubuntu-noble-amd64/dev/null -rw-r--r-- 1 root root 28 Sep 21 03:01 test-ubuntu-noble-amd64/dev/null # cat test-ubuntu-noble-amd64/dev/null update-initramfs: not found Debootstrap should probably delete this bogus "device" so it doesn't interfere with the operation of the chroot. If it helps, here is the composition of /dev in this environment (inside the rootless Podman container, but outside of the chroot created above): # mount | grep ' on /dev' tmpfs on /dev type tmpfs (rw,nosuid,size=65536k,mode=755,uid=1000,gid=100,inode64) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=1179652,mode=620,ptmxmode=666) mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime) shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=64000k,uid=1000,gid=100,inode64) devtmpfs on /dev/null type devtmpfs (rw,nosuid,noexec,size=4096k,nr_inodes=49280327,mode=755,inode64) devtmpfs on /dev/zero type devtmpfs (rw,nosuid,noexec,size=4096k,nr_inodes=49280327,mode=755,inode64) devtmpfs on /dev/full type devtmpfs (rw,nosuid,noexec,size=4096k,nr_inodes=49280327,mode=755,inode64) devtmpfs on /dev/tty type devtmpfs (rw,nosuid,noexec,size=4096k,nr_inodes=49280327,mode=755,inode64) devtmpfs on /dev/random type devtmpfs (rw,nosuid,noexec,size=4096k,nr_inodes=49280327,mode=755,inode64) devtmpfs on /dev/urandom type devtmpfs (rw,nosuid,noexec,size=4096k,nr_inodes=49280327,mode=755,inode64) --Daniel

