Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#19792 - [initscripts] [mkinitcpio] Implement full btrfs support (including multiple devices)

Attached to Project: Arch Linux
Opened by Mathias (jordi) - Monday, 14 June 2010, 17:45 GMT
Last edited by Andrea Scarpino (BaSh) - Saturday, 19 March 2011, 00:35 GMT
Task Type Feature Request
Category System
Status Closed
Assigned To Tobias Powalowski (tpowa)
Thomas Bächler (brain0)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

Mounting one of multiple btrfs devices isn't possible at boot time. It says something along the unkown fs type / invalid partition.

It doesn't work because btrfs needs to scan the devices with btrfsctl -a first.

Additional info:
* kernel 2.6.33 and kernel 2.6.34-1 from testing
* See http://bugs.gentoo.org/show_bug.cgi?id=309219

* If the mkinitcpio-btrfs hook fixes this, let me know. From my understanding the mkinitcpio-btrfs package is only needed if you use btrfs on a root device.(?)

Steps to reproduce:

* create two btrfs partitions over 2 devices.
* Try to mount that on boot for /home or something.
* Reboot
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Saturday, 19 March 2011, 00:35 GMT
Reason for closing:  Implemented
Additional comments about closing:  http://projects.archlinux.org/initscript s.git/commit/?id=ca372312062e7843ca69e2e dd54b58ab609a69ee
Comment by Thomas Bächler (brain0) - Monday, 14 June 2010, 21:26 GMT
I first thought you talked about / on btrfs. This is known and mkinitcpio-btrfs from AUR needs to be merged into mkinitcpio - I'll have to talk to the authors.

What you need is probably btrfs support in initscripts. Try this: Add a new file /etc/rc.d/functions.d/btrfs (make it executable with chmod 755), write this into the file:

btrfs_init() {
btrfsctl -a
}
add_hook btrfs_init sysinit_prefsck

Maybe you need to use the absolute path (probably /sbin/btrfsctl). We need to add this to initsripts at some point, when we merge btrfs support into our repositories, initscripts and mkinitcpio.
Comment by Thomas Bächler (brain0) - Monday, 14 June 2010, 21:27 GMT
I am also assigning tpowa to this, he spent some time messing with btrfs stuff recently.
Comment by Tobias Powalowski (tpowa) - Tuesday, 15 June 2010, 12:12 GMT
i'm working on full btrfs support on next archboot images, atm i'm a bit stuck in setup code, it's quite complex.
I'll then add some kind of hook to btrfs-progs-unstable to get it working from initcpio,
last step is then to add code to initscripts.

Quite some work but it'll be finished soon.
Comment by Thomas Bächler (brain0) - Tuesday, 15 June 2010, 12:19 GMT
I've had a small email exchange with the author of mkinitcpio-btrfs (see AUR) and he seems to know what he is doing - he also gave me some insight into what's needed and what isn't. I will post the relevant parts of his emails here once I have time.
Comment by Jan Alexander Steffens (heftig) - Saturday, 19 June 2010, 12:58 GMT
I also started working on some patches:
http://github.com/heftig/mkinitcpio/tree/btrfs
Comment by ugaciaka (ugaciaka) - Saturday, 31 July 2010, 06:56 GMT
I see, during the boot, that show only partition NOT in btrfs...

e.g i have two partitions: /dev/sda1 for / in ext4 and /dev/sda2 for /home in btrfs

during the boot I see only /dev/sda1 clean but I don't see /dev/sda2...

This bug report is related right?

Thank's.
Comment by Thomas Bächler (brain0) - Saturday, 31 July 2010, 08:41 GMT
No, the partitions are supposed to show, independent of what's inside.
Comment by Sébastien Luttringer (seblu) - Thursday, 17 March 2011, 23:36 GMT

Loading...