From 165dcf1edaae432ec6f56408fd58eb5ec448345f Mon Sep 17 00:00:00 2001 From: Killian De Volder Date: Tue, 28 Mar 2017 17:35:07 +0200 Subject: Added information about static binaries. --- FAQ.mdwn | 13 +++++++++++++ Howto.mdwm | 8 ++++++++ 2 files changed, 21 insertions(+) diff --git a/FAQ.mdwn b/FAQ.mdwn index d83ddca..b6c64ad 100644 --- a/FAQ.mdwn +++ b/FAQ.mdwn @@ -18,3 +18,16 @@ the new filesystem. ## Does bcachefs still have the bcache caching functionality of block devices ? No. + +## Where do I obtain statically linked bcachefs-tool (for use in initramfs) ? + +You can either compile them yourself from source, +or refer to your distribution on how to obtain a statically linked set. + +About: +Statically linked programs have all the required dependencies compiled in. +As such, they require no external libraries at runtime. +This does however increase the size of the binary. + + + diff --git a/Howto.mdwm b/Howto.mdwm index 36ccab5..a66fe1a 100644 --- a/Howto.mdwm +++ b/Howto.mdwm @@ -12,6 +12,14 @@ To instal run as root: make && make install +#Build the bcachefs-tools statically linked. +Follow the steps above. +But run the following command instead. + + EXTRA_CFLAGS="-static" make && make install + +Please take note that you also need a static version installed of all required libraries. + #Build the bcachefs-kernel branch. Firt run the following command to download a kernel branch with the bcachefs patches. -- cgit v1.2.3