You are not logged in.

#1 2012-12-10 09:37:38

ZeroLinux
Member
Registered: 2011-10-07
Posts: 84

[SOLVED] mkinitcpio: btrfs and fsck conflict

After upgrade I have error:

==> Building image from preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 3.6.9-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [keymap]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [usbinput]
  -> Running build hook: [fsck]
==> ERROR: file not found: `fsck.btrfs'
==> WARNING: No fsck helpers found. fsck will not be run on boot.
  -> Running build hook: [encrypt]
  -> Running build hook: [btrfs]
  -> Running build hook: [vbox]

I deleted fsck as temporary solution to build image.
What is the real solution?

Last edited by ZeroLinux (2012-12-10 11:47:47)

Offline

#2 2012-12-10 09:48:15

illusionist
Member
From: localhost
Registered: 2012-04-03
Posts: 498

Re: [SOLVED] mkinitcpio: btrfs and fsck conflict

I think it is 'btrfsck'.

EDIT: Have a look at this thread-
https://bbs.archlinux.org/viewtopic.php?pid=1121677

Last edited by illusionist (2012-12-10 09:50:03)


  Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github

Offline

#3 2012-12-10 10:07:21

ZeroLinux
Member
Registered: 2011-10-07
Posts: 84

Re: [SOLVED] mkinitcpio: btrfs and fsck conflict

I tried to install from AUR:  btrfs-progs-git and mkinitcpio-btrfs
Replaced hook btrfs with btrfs_advanced
Still have error:

sudo mkinitcpio -p linux
==> Building image from preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 3.6.9-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [keymap]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> ERROR: file not found: `fsck.btrfs'
==> WARNING: No fsck helpers found. fsck will not be run on boot.
  -> Running build hook: [usbinput]
  -> Running build hook: [encrypt]
  -> Running build hook: [btrfs_advanced]
  -> Running build hook: [vbox]

I tried to make the symlink
sudo ln -s /usr/bin/btrfsck /sbin/fsck.btrfs
but the problem remains.

Offline

#4 2012-12-10 10:15:09

illusionist
Member
From: localhost
Registered: 2012-04-03
Posts: 498

Re: [SOLVED] mkinitcpio: btrfs and fsck conflict

The wiki says:
"Fully functional fsck.btrfs is not released yet, and ArchLinux works with its limited version in wrong way."


  Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github

Offline

#5 2012-12-10 10:19:03

ZeroLinux
Member
Registered: 2011-10-07
Posts: 84

Re: [SOLVED] mkinitcpio: btrfs and fsck conflict

I tried to insert btrfsck into HOOK array. It doesn't work:

==> Building image from preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 3.6.9-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [keymap]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
==> ERROR: Hook 'btrfsck' cannot be found
  -> Running build hook: [usbinput]
  -> Running build hook: [encrypt]
  -> Running build hook: [btrfs_advanced]
  -> Running build hook: [vbox]

I have root and /home on btrfs, therefore I can't get rid of this message, right?
The best way is to exclude fsck from HOOK array as I understand, right?

Last edited by ZeroLinux (2012-12-10 10:21:19)

Offline

#6 2012-12-10 10:28:07

illusionist
Member
From: localhost
Registered: 2012-04-03
Posts: 498

Re: [SOLVED] mkinitcpio: btrfs and fsck conflict

Add btrfsck to BINARY line.

Last edited by illusionist (2012-12-10 10:28:45)


  Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github

Offline

#7 2012-12-10 10:38:51

ZeroLinux
Member
Registered: 2011-10-07
Posts: 84

Re: [SOLVED] mkinitcpio: btrfs and fsck conflict

Ok. Now is this:
BINARIES="btrfsck"
HOOKS="base udev keymap autodetect modconf block filesystems usbinput encrypt btrfs vbox"
Is this right variant?

Offline

#8 2012-12-10 10:59:44

illusionist
Member
From: localhost
Registered: 2012-04-03
Posts: 498

Re: [SOLVED] mkinitcpio: btrfs and fsck conflict

ZeroLinux wrote:

Ok. Now is this:
BINARIES="btrfsck"
HOOKS="base udev keymap autodetect modconf block filesystems usbinput encrypt btrfs vbox"
Is this right variant?

I think it is.
Here is my mkinitcpio for some reference : http://pastebin.com/qgRtJUih


  Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github

Offline

#9 2012-12-10 11:47:26

ZeroLinux
Member
Registered: 2011-10-07
Posts: 84

Re: [SOLVED] mkinitcpio: btrfs and fsck conflict

illusionist wrote:

I think it is.
Here is my mkinitcpio for some reference : http://pastebin.com/qgRtJUih

Thank you a lot!!!

Offline

Board footer

Powered by FluxBB