[Pkg-sysvinit-devel] Bug#686639: initscripts: btrfs multi-disk-filesystems do not mount on startup

Petter Reinholdtsen pere at hungry.com
Tue Sep 4 08:00:51 UTC 2012


reassign 686639 btrfs-tools
thanks

[M G Berberich]
> For btrfs multi-disk-filesystems to get mounted it is neccessary to do
> a ‘btrfs scan’ so the kernel knows about btrfs-disks/partitions. This
> should probably be done in ‘/etc/init.d/mountall.sh’
> 
>   # for btrfs multi-disk/partition-filesystems
>   if [ -x /sbin/btrfs ]; then
>         /sbin/btrfs device scan 2>/dev/null
>   fi

I believe it is better to put such code in the btrfs-tools package
which include the btrfs tool or some other btr related package, and
make sure the new init.d script is executed before mountall.sh (and
perhaps before checkroot.sh?).  This way it will only be executed for
those using btrfs.

-- 
Happy hacking
Petter Reinholdtsen



More information about the Pkg-sysvinit-devel mailing list