Your message dated Wed, 06 Feb 2019 20:48:59 +0000
with message-id <e1gru7v-000j6x...@fasolo.debian.org>
and subject line Bug#908967: fixed in initramfs-tools 0.133
has caused the Debian Bug report #908967,
regarding initramfs-tools: mount fails with rootfstype=auto
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.)
--
908967: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908967
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: initramfs-tools
Version: 0.130
Severity: normal
Dear Maintainer,
I encountered a strange problem mounting the rootfs with a freshly
debootstrapped system.
Note: possible duplicate of #845302 but due to the details I found it probably
warrants its own topic.
Steps:
- used debootstrap with --variant=minbase to create an armhf rootfs
- added custom packages such as vendor kernel, systemd, initramfs-tools
- created extlinux.conf to boot
- bootargs: root=UUID=... rootfstype=auto rootwait
Observations:
- root=/dev/mmcblk0p1 rootfstype=auto: fails
- root=/dev/mmcblk0p1 rootfstype=ext4: works
- root=UUID=... rootfstype=ext4: works
How did I find this?
I added "set -x" to
- /usr/share/initramfs-tools/init
- /usr/share/initramfs-tools/scripts/init-bottom/udev
The serial console then finally revealed what is going wrong.
When it fails (rootfstype=auto):
+ [ auto != unknown ]
+ mount -r -t auto /dev/mmcblk0p1 /root
mount: No such device
When it works (rootfstype=ext4):
+ [ ext4 != unknown ]
+ mount -r -t ext4 /dev/mmcblk0p1 /root
[ 9.979060] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode.
Opts: (null)
So I see two solutions:
- If rootfstype=auto, and the actual type is known through a previous call to
blkid, e.g. while running fsck, use the known type
- fix the mount command to deal with type auto
I am submitting the full boot logs by email as follow-up.
Yours sincerely
Josua Mayer
-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 8.5M Sep 16 20:04 /boot/initrd.img-4.9.124-imx6-sr
-- /proc/cmdline
root=UUID=febfadf2-ffa2-48ad-9802-d7b67b5e7818 rootfstype=ext4 rootwait
-- /proc/filesystems
ext3
ext2
ext4
vfat
fuseblk
f2fs
-- lsmod
Module Size Used by
bnep 20480 2
mxc_v4l2_capture 40960 0
ipu_bg_overlay_sdc 16384 1 mxc_v4l2_capture
ipu_still 16384 1 mxc_v4l2_capture
ipu_prp_enc 16384 1 mxc_v4l2_capture
ipu_csi_enc 16384 1 mxc_v4l2_capture
ipu_fg_overlay_sdc 20480 1 mxc_v4l2_capture
hci_uart 49152 0
btbcm 16384 1 hci_uart
nvmem_core 24576 1 hci_uart
ov5647_camera_mipi 36864 0
v4l2_int_device 16384 3 ov5647_camera_mipi,ipu_csi_enc,mxc_v4l2_capture
xt_connmark 16384 2
iptable_nat 16384 0
nf_conntrack_ipv4 16384 3
nf_defrag_ipv4 16384 1 nf_conntrack_ipv4
nf_nat_ipv4 16384 1 iptable_nat
nf_nat 24576 1 nf_nat_ipv4
nf_conntrack 106496 4 nf_conntrack_ipv4,xt_connmark,nf_nat_ipv4,nf_nat
iptable_mangle 16384 1
iptable_filter 16384 0
ir_lirc_codec 16384 0
galcore 372736 0
ir_rc6_decoder 16384 0
lirc_dev 20480 1 ir_lirc_codec
rc_rc6_mce 16384 0
gpio_ir_recv 16384 0
bluetooth 360448 12 hci_uart,bnep,btbcm
rfkill 24576 4 bluetooth
ip_tables 24576 3 iptable_mangle,iptable_filter,iptable_nat
x_tables 28672 4
iptable_mangle,ip_tables,iptable_filter,xt_connmark
imx_sdma 28672 8
virt_dma 16384 1 imx_sdma
-- /etc/initramfs-tools/modules
-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=auto
KEYMAP=n
COMPRESS=gzip
DEVICE=
NFSROOT=auto
-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no
-- /proc/mdstat
Personalities :
unused devices: <none>
-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:
imx-sdma
/usr/share/initramfs-tools/hooks:
dmsetup
fsck
fuse
keymap
klibc-utils
kmod
ntfs_3g
resume
thermal
udev
-- System Information:
Debian Release: 9.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: armhf (armv7l)
Kernel: Linux 4.9.124-imx6-sr (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages initramfs-tools depends on:
ii initramfs-tools-core 0.130
ii linux-base 4.5
initramfs-tools recommends no packages.
Versions of packages initramfs-tools suggests:
pn bash-completion <none>
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: initramfs-tools
Source-Version: 0.133
We believe that the bug you reported is fixed in the latest version of
initramfs-tools, 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 908...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Ben Hutchings <b...@decadent.org.uk> (supplier of updated initramfs-tools
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 ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 06 Feb 2019 20:13:59 +0000
Source: initramfs-tools
Architecture: source
Version: 0.133
Distribution: unstable
Urgency: medium
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: Ben Hutchings <b...@decadent.org.uk>
Closes: 677049 766446 848906 893897 903931 908967 916935
Changes:
initramfs-tools (0.133) unstable; urgency=medium
.
[ Ben Hutchings ]
* [942f1d2] unmkinitramfs, lsinitramfs: Avoid zcat compatibility issue by
running gzip (Closes: #903931)
* [94683ef] mkinitramfs: Remove check for kernel version < 2.6.38
* [40fb032] mkinitramfs; Stop setting both compress and COMPRESS variables
* [01af757] initramfs-tools: Change trigger declaration to "interest-await"
* [2bb6a9c] update-initramfs: Remove test for working dpkg-trigger
* [1f10559] kernel hooks: Remove use of update-initramfs -t option
* [1343b68] update-initramfs: Remove undocumented -y option
* [e0d4024] mkinitramfs: Warn if the compression command is not recognised
* [bafb9d4] init: Always export the resume and noresume variables, as
documented
* [f21fdae] debian/rules: Use a more conservative "find" for shellcheck
arguments
* [9c63564] Change get_fstype to be silent on failure
* [58df6d3] scripts/functions: Abort _checkfs_once early if fs type is
unknown
* [f8ceeb9] scripts/local: Explicitly check for missing root parameter and
mount failure. Thanks to "G.raud" <gr...@gmx.com> (Closes: #848906)
* [a5ae8a1] scripts/{local,nfs}: Remove redundant modprobe of filesystem
modules
* [4807ede] hook-functions: Avoid symlinks that conflict with usr-merge in
copy_file
* [79f49b9] {hooks,scripts}/keymap: Use setupcon --setup-dir
* [839be1b] scripts/local: Handle rootfstype=auto the same as if type is
unspecified (Closes: #908967)
* [f086b72] mkinitramfs: Use default compression level for lzop
(Closes: #916935)
* [d343f5e] README: Summarise what initramfs-tools does and point to manual
pages
* [c5dd80a] initramfs-tools(7): Document how to update the initramfs from
another package (Closes: #893897)
* [2e5e389] scripts/functions: Revert change to _log_msg and make callers
format-safe
* [49139ca] scripts/local-premount/resume: Report when we are resuming.
Thanks to Mario Limonciello <mario.limoncie...@dell.com>
* [28b9d1d] scripts/nfs: Use "sleep" instead of /bin/sleep (Closes: #677049)
* [db394d3] Print warnings and errors in initramfs generation consistently
* [d9cf2f2] hooks/fsck: If get_fstype fails, report which file system it
failed for (Closes: #766446)
* [1ae0994] mkinitramfs: Change EXTRA_CONF to include directory names
* [34f84b4] mkinitramfs: Don't add directories to EXTRA_CONF
* [db31e7e] mkinitramfs: Use pigz if available instead of gzip
* [e4a5589] initramfs-tools-core: Recommend pigz
* [b8d3d59] Remove descriptions of removed/deprecated options from man page
synopses
* [4d57f63] mkinitramfs(8), update-initramfs(8): Fix over-indentation of
options
* [66902db] update-initramfs(8): Fix formatting of mode options in the
synopsis
* [bb9d247] Move usage function for mkinitramfs out of hook-functions
* [2380cb8] update-initramfs: Use getopt instead of getopts
* [abca193] update-initramfs: Make -h option return 0 and write usage to
stdout
* [ccf07ee] update-initramfs: Support --help option
* [c800321] Make all commands return 2 in case of a usage error
* [fc81f7f] mkinitramfs: Support -h and --help options
* [94e05dd] unmkinitramfs(8): Abbreviate synopsis to avoid wrapping
* [00809d7] Make manual pages and usage messages more consistent
* [45f4d15] unmkinitramfs: Write usage on stderr in case of error
* [908bd7d] lsinitramfs, mkinitramfs, unmkinitramfs: Show usage if getopt
fails
* [1cc6e78] lsinitramfs: Check for empty list of arguments after parsing
options
* [fb3ea62] hooks/resume: Report in excruciating detail if the -v option is
used
.
[ Benjamin Drung ]
* [806c757] scripts/functions: Fix syntax error: unexpected "(" on panic
* [88b0c9b] mkinitramfs: Fix termination of gzip compression case
* [5438f31] scripts/functions: Drop render function
* [3c8b4c3] Remove trailing newline from debian/changelog
* [f277309] Fix (nearly) all issues found by shellcheck
* [2bab73b] Disable shellcheck for desired behaviour
* [3650731] Replace 'echo -n' by printf
* [9c0feb2] Run shellcheck on package build time
* [c9cb0a0] Add autopkgtest for shellcheck
Checksums-Sha1:
935bb5cd557cfb57fc049ad0d8ab207dcf2ad1d9 1821 initramfs-tools_0.133.dsc
532acccee5057c4e0fad42c5a04d4ad195f9277e 90132 initramfs-tools_0.133.tar.xz
e22a1033c784c9f3122afff2a6680601b9444e96 6138
initramfs-tools_0.133_source.buildinfo
Checksums-Sha256:
bf608639c7d5100663d4f35b182e3ade0f63beac0e3e216dc8e5cb9984ec6a41 1821
initramfs-tools_0.133.dsc
b68226091ad2047c76b517498b1d921a28f35b252a7351003b0822220d632921 90132
initramfs-tools_0.133.tar.xz
17343a0067185fdda1432a1229b875f06bf25f8f974fa09899c42f8e848079a8 6138
initramfs-tools_0.133_source.buildinfo
Files:
5bc39635346a0d9b7effbd53fc0b21aa 1821 utils optional initramfs-tools_0.133.dsc
a51863f6cc15e39b1c368ef256e12a34 90132 utils optional
initramfs-tools_0.133.tar.xz
e7fcbb60695de37344eea726080d62c5 6138 utils optional
initramfs-tools_0.133_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAlxbRPoACgkQ57/I7JWG
EQnmgQ//RKHiLOaKD7B6B6MNU3UwJI1LApzUSwXCAr/OvPsLG/mRrL9C1phnHJ1K
brki5eoCDIOy+dXnEfZaebwL/AQQdSBq2GdNt+honc1YT8jcVjANtJdxUQRmGnQD
khOkcGH8mNDIuFPygWYVtF0bBcGHfw8NpDn7TfAblPkjIxKlxmj9CU4TYXA70Av/
nYcNrnOz0Z28WN64ckvbyqkHMrPvUG9k63ahcKRQP3KpK+G8vLSH9cnpV//VUz+g
aU/5OTVSzx3SNnuViySR03TKQVVXOJirCUfUM8ybLc58rcq0dNoGAG1JXTEgohOU
6NxUfvsrDag5hzVZlP1yFtDRtNV+f3wzvrhgvRo1KrrBmPI9KNNV7q/0V2sbCS7y
r6gLukYATR8/lZ/b4KfFE7Hsutokz0RL/AG04WWPXPQth7MExIt0G8o69G79Ni00
UPQTjKS41ow5/V9F4WYgspnLBQl7CyOzYaXfhiiL6/hzSRMOrf0dXhP7V4K9pyR1
cteSgYYZcTqXhqj0piK0SbfwsyEBKP12jI6zciMoTeBOSglgU5OELrsOO2SeCKdX
SCw/NiI5gRHUOSGMCBY5esjWzgfKa/ZHL9TORcvYDXDK6lH133b3vfaBSDdHh5fZ
AU3NkV7rH8pIoL+hQTtwKjBHC6FcidzRE89DFaslouiqkqvFrIM=
=5DW4
-----END PGP SIGNATURE-----
--- End Message ---