LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-05-2016, 07:38 PM   #1
bam80
LQ Newbie
 
Registered: Nov 2015
Location: Russia
Distribution: Slackware
Posts: 15

Rep: Reputation: Disabled
Exclamation initrd can't boot from BTRFS filesystem passed by UUID


It's turned out that busybox versions of findfs and blkid utils just can't detect BTRFS, but findfs must do it for boot from this filesystem if it passed by UUID in kernel commandline and initrd used to boot.
I just copied findfs from host to initrd and it solved the problem.

Can we upgrade busybox for initrd, or include separate findfs util to initrd? It would add just about 8K on x86_64, and findfs could be compiled out from busybox then..

PS: grub passes root filesystems by UUID by default, so this creates potential problem, since debugging this issue is not trivial.
Slackware 14.2

Code:
root@darkstar:~# /boot/initrd-tree/bin/busybox blkid                                                                                                                                                             
/dev/sdb4: LABEL="swap" UUID="b24ad448-f5e4-49ee-b893-434f0ef50019" TYPE="swap"                                                                                                                                  
/dev/sdb3: UUID="7C43-027C" TYPE="vfat"                                                                                                                                                                          
/dev/sdb2: UUID="B6B02F63B02F2977" TYPE="ntfs"                                                                                                                                                                   
/dev/sdb1: UUID="b42e7fd6-3696-4600-b97c-44903f33d97d" TYPE="ext4"                                                                                                                                               
/dev/sda1: LABEL="System" UUID="7189-9B76" TYPE="vfat"                                                                                                                                                           
root@darkstar:~# blkid                                                                                                                                                                                           
/dev/sdb1: UUID="b42e7fd6-3696-4600-b97c-44903f33d97d" TYPE="ext4" PARTUUID="b2b50800-01"                                                                                                                        
/dev/sdb2: UUID="B6B02F63B02F2977" TYPE="ntfs" PARTUUID="b2b50800-02"                                                                                                                                            
/dev/sdb3: SEC_TYPE="msdos" UUID="7C43-027C" TYPE="vfat" PARTUUID="b2b50800-03"                                                                                                                                  
/dev/sdb4: LABEL="swap" UUID="b24ad448-f5e4-49ee-b893-434f0ef50019" TYPE="swap" PARTUUID="b2b50800-04"
/dev/sda1: LABEL="System" UUID="7189-9B76" TYPE="vfat" PARTUUID="6b31845e-f232-4193-b3f4-52c5569fdb60"
/dev/sda2: UUID="8e77b8ea-1c44-44a1-8829-8353a17536ed" UUID_SUB="68b8c488-3d3d-4830-985e-5e87421df73b" TYPE="btrfs" PARTUUID="93b0463b-66d3-4d51-b7c9-c90cc935f17b"

Last edited by bam80; 11-05-2016 at 08:01 PM. Reason: PS
 
Old 11-06-2016, 01:54 PM   #2
bam80
LQ Newbie
 
Registered: Nov 2015
Location: Russia
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: Disabled
The problem seems to be that BTRFS simply switched off in busybox configuration file busybox-dot-config.1.20.x:
Code:
#
# Filesystem/Volume identification
#
CONFIG_FEATURE_VOLUMEID_EXT=y
# CONFIG_FEATURE_VOLUMEID_BTRFS is not set
CONFIG_FEATURE_VOLUMEID_REISERFS=y
CONFIG_FEATURE_VOLUMEID_FAT=y
CONFIG_FEATURE_VOLUMEID_HFS=y
CONFIG_FEATURE_VOLUMEID_JFS=y
CONFIG_FEATURE_VOLUMEID_XFS=y
CONFIG_FEATURE_VOLUMEID_NTFS=y
CONFIG_FEATURE_VOLUMEID_ISO9660=y
CONFIG_FEATURE_VOLUMEID_UDF=y
CONFIG_FEATURE_VOLUMEID_LUKS=y
CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y
CONFIG_FEATURE_VOLUMEID_CRAMFS=y
CONFIG_FEATURE_VOLUMEID_ROMFS=y
CONFIG_FEATURE_VOLUMEID_SYSV=y
# CONFIG_FEATURE_VOLUMEID_OCFS2 is not set
CONFIG_FEATURE_VOLUMEID_LINUXRAID=y
Patrick, can the BTRFS support be switched on in busybox?
 
Old 07-15-2017, 03:58 PM   #3
bam80
LQ Newbie
 
Registered: Nov 2015
Location: Russia
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: Disabled
I would just rise this thread again, since it was not fixed nor reacted,
in the result I stuck on it again since >6 month passed..
Not sure if devs read it, but I don't know other ways to report bugs for Slackware.
Please, help
 
2 members found this post helpful.
Old 07-15-2017, 04:24 PM   #4
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 1,244

Rep: Reputation: 3401Reputation: 3401Reputation: 3401Reputation: 3401Reputation: 3401Reputation: 3401Reputation: 3401Reputation: 3401Reputation: 3401Reputation: 3401Reputation: 3401
I've made a note here, thanks.
 
3 members found this post helpful.
Old 07-16-2017, 01:12 AM   #5
davjohn
Member
 
Registered: Jan 2017
Posts: 33

Rep: Reputation: Disabled
And while you are at it, please also add rootflags support, I posted a patch here:
http://www.linuxquestions.org/questi...ml#post5729475

This is needed if root filesystem is on btrfs subvolume, for ex.: rootflags=subvol=/rootfs,defaults,noatime
Grub already detect this and set rootflags, but initrd doesn't use it, when mounting root fs.
 
Old 07-16-2017, 06:55 AM   #6
chemfire
Member
 
Registered: Sep 2012
Posts: 169

Rep: Reputation: Disabled
I'll 2nd on the rootflags patch! Having to manaully update the init script in the the initrd everytime has been a pain point for years. The patch above seems to work well at least for me.
 
  


Reply

Tags
blkid, boot failure, btrfs, busybox, uuid


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GParted 0.23.0 Open Source Partition Editor Adds Support for Setting New Btrfs UUID LXer Syndicated Linux News 0 08-04-2015 02:02 AM
btrfs filesystem df /mnt/btrfs/ shows bothe data and metdata with raid1 and single. gonus Linux - Software 3 07-17-2014 02:48 PM
[SOLVED] enable UUID support in kernel [WITHOUT INITRD] entz Linux - Kernel 11 10-19-2011 08:37 PM
how to boot from UUID using initrd kapsule Linux - Software 1 05-02-2011 03:54 AM
login password problem in first boot with initrd filesystem ansh2d87 Linux - Hardware 0 04-24-2009 04:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration