i have the Porteus on a btrfs filesystem and i will check it on boot.
So i extract the initrd.xz and modifiy the linuxrc file:
Code: Select all
<--------- start by line 143 -----------
## Let's start!
mount -nt devtmpfs none /dev
bcheck=`find / -name "btrfsck"`
# Perform filesystem check:
# if param fsck; then
echo "performing linux filesystem check on all available devices:"
# draw
for x in `blkid | grep 'TYPE="ext4"' | cut -d: -f1`; do e2fsck -C 0 -p $x; echo "Filecheck on $x"; wait; done
for x in `blkid | grep 'TYPE="btrfs"' | cut -d: -f1`; do $bcheck --repair $x; echo "Filecheck on $x"; wait; done
# draw
# fi
---- cut ------>
The blkid command found my partition on /dev/mmcblk0p2, but the busybox returns: /usr/bin/btrfsck command not found ???
hmm, i copy the btrfs files in usr/bin/ there is also the e2fsck & blkid binary.
Code: Select all
root@porteus:/mnt/live/bin/busybox
BusyBox v1.21.1 (2014-01-18 12:05:40 UTC) multi-call binary.
Currently defined functions:
ash, basename, bash, cat, chmod, chown, chroot, clear, cp, cut, df,
dmesg, egrep, find, free, grep, halt, ifconfig, kill, killall, ln,
losetup, ls, lsmod, lsof, lspci, md5sum, mkdir, mknod, modinfo,
modprobe, mount, mv, ping, pivot_root, poweroff, ps, reboot, rev, rm,
rmdir, route, sed, sh, sleep, sort, switch_root, sync, tac, tail,
touch, tr, udhcpc, umount, uname, uniq, usleep, vi
P.S.: sorry for my poor english i'm from austria
