Void-packages: Dracut message on system boot

Created on 12 Jul 2019  Â·  14Comments  Â·  Source: void-linux/void-packages

Void Linux 5.0.21_1
When Void Linux boots, TTY shows this line:

//lib/dracut/hooks/pre-mount/10-resume.sh: line 20: echo: write error: Invalid argument rw, relatime

Things I've tried:

  • xbps-reconfigure -f linux5.0
  • dracut -f -H
  • Searching in Dracut repository for 10-resume.sh – here

Search gave me this result (not really useful tho).

bug

All 14 comments

What's your /proc/cmdline value, and what filesystem are you using?

[root@local ~]# vim /proc/cmdline

BOOT_IMAGE=/boot/vmlinuz-5.0.21_1 root=UUID=bf9295b9-21f1c-4cd9-acef-44faeee4cc82 ro loglevel=4 slub_debug=P page_poison=1

[root@local ~]# df -Th

Filesystem     Type      Size  Used Avail Use% Mounted on
devtmpfs       devtmpfs  3.9G     0  3.9G   0% /dev
tmpfs          tmpfs     3.9G     0  3.9G   0% /dev/shm
tmpfs          tmpfs     3.9G  756K  3.9G   1% /run
/dev/sdf3      ext4       30G  2.0G   27G   8% /
cgroup         tmpfs     3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sdf2      vfat     1022M  148K 1022M   1% /boot/efi                  
/dev/sdf4      ext4       84G   57M   84G   1% /home
tmpfs          tmpfs     3.9G     0  3.9G   0% /tmp

After updating system packages, TTY shows 6 entries of scandir: No such file or directory in the beggining and after => Setting up keymap to 'us' besides dracut message.

Has something gone horribly wrong with my installation?

Run xbps-pkgdb -a to see if there are some missing files, links or hashsum mismatches.

Nope. Nothing shows.

I've also tried xbps-reconfigure -f -a.

Following this guide I've installed another Void system into USB stick. scandir and dracut error messages still persist. Maybe it somehow connected that dracut uses /proc/self/mountinfo?

Don't know about scandir messages tho.

This happens to me too. (I use this to guide myself, might be helpful).
I installed both the glibc version and the musl version on VirtualBox in the exact same way:

  • The line //lib/dracut/hooks/pre-mount/10-resume.sh: line 20: echo: write error: Invalid argument rw, relatime only shows up in the musl version.
  • The scandir errors show up in both versions.

Happy to report that with recent updates scandir messages is gone, however dracut message still hanging there.

I know this is old but I think I found a way to solve this.
If you don't want hibernation, you can just add omit_dracutmodules+="resume" to your dracut config and regenerate your initramfs.
If you do want hibernation, edit the file /usr/lib/dracut/modules.d/95resume/resume.sh and change the line

echo "${maj%,}:$min"> /sys/power/resume)

to

echo $maj:$min | tr -d , > /sys/power/resume)

.
It's a bit of a hack (and I don't know if it'll persist through an update), but it works.

Out of curiosity, I imagine you don't get the same issue if you set noresume in the kernel cmdline, right?

That looks more like a possible dracut bug than anything else. Have you tried reporting it to upstream? Could be useful.

Using noresume also works.
Yeah I guess it's a dracut problem. Something with its echo command causes an invalid argument error somehow.
Doing ls -lH /dev/sda3 | (read x x x x maj min x; echo "${maj%,}:$min") manually gives the expected output, so I'm not sure what's the problem, but using echo $maj:$min | tr -d , solves it.
Not really sure how to report the bug. Never had to do it outside of github.

It's likely the mailing list at the bottom here: https://dracut.wiki.kernel.org/index.php/Main_Page

Do you use IRC? They seem to have a channel on freenode. You might be able to discuss it a bit there, but I would definitely recommend using the mailing list instead. If you can create a git diff with your change, that will be even better.

Alright, thanks. I've sent a bug report to the mailing list.
I guess this issue can be closed since it's a dracut problem.

Should be okay to track it here, if you want. Specially if we need to update because of the fix or anything.

Was this page helpful?
0 / 5 - 0 ratings