OneFileLinux icon indicating copy to clipboard operation
OneFileLinux copied to clipboard

Build with LVM?

Open ameeno opened this issue 4 years ago • 11 comments

Hello, this tool would be great to live in EFI for resizing file systems offline.

(especially root)

However I am trying to build a version with lvm compatible as well as with lvm-utilities.

I cannot really build it yet and I am trying to build a version without downloading a 14GB vm.

Can you assist?

ameeno avatar Apr 09 '20 20:04 ameeno

Sorry, it's been a while and I forget how it works :)

zhovner avatar Apr 10 '20 00:04 zhovner

Ok, we need to add the dm-mod kernel module and the lvm2 package before building.

The installer script removes all the modules, can you build one with LVM2 compatible?

I do not think it will add many kiloBytes and would be great for doing Offline lvm2 mods.

ameeno avatar May 06 '20 00:05 ameeno

Maybe you can ask @foxpdll for help.

zhovner avatar May 06 '20 07:05 zhovner

Ok, we need to add the dm-mod kernel module and the lvm2 package before building.

The installer script removes all the modules, can you build one with LVM2 compatible?

I do not think it will add many kiloBytes and would be great for doing Offline lvm2 mods.

try this https://github.com/foxpdll/OneFileLinux/tree/master/FoxBuild i added lvm2 packages

foxpdll avatar May 06 '20 11:05 foxpdll

@foxpdll can you please publish compiled file in Releases page?

zhovner avatar May 06 '20 12:05 zhovner

@ameeno try this please https://github.com/foxpdll/OneFileLinux/releases/tag/v0.3.3

foxpdll avatar May 06 '20 18:05 foxpdll

hello @foxpdll,

Thanks, I have tried this package with llvm2. Its an improvement, pvscan, lvscan and vgscan do present output.

However, it complains about device mapper. and modprobe dm-mod does not work, and no VG's can be mounted or modified or mapped.

I think the key missing piece is the dm-mod (Device Mapper) kernel module.

dm-mod is required according to this guide on alpine https://wiki.alpinelinux.org/wiki/Setting_up_Logical_Volumes_with_LVM how could I add it? The build script appears to remove all modules when building. perhaps you know where to get the source code for Dm mod to install it at build time?

ameeno avatar May 06 '20 21:05 ameeno

Hi @ameeno , yes you are right. i forgot include dm-mod i will recompile and put it in release 0.3.3 in my repo

You can build dist by youself Download my scripts - all folder FoxBuild run 01 script 02 script 03 script then go to linux sourses and make menuconfig inclide all you need go .. run 04 script in folder you will find compiledfile

build script remove all modules but then it install them from compiled sources you can make menuconfig and choose all you need after compilling modules will be in /lib/modules

foxpdll avatar May 07 '20 18:05 foxpdll

@ameeno try now https://github.com/foxpdll/OneFileLinux/releases/download/v0.3.3/OneFileLinux.zip

foxpdll avatar May 07 '20 18:05 foxpdll

@foxpdll Thanks for this, I will test and report back.

I have tried compiling myself but Ubuntu 20.04 does not allow me to build due to weird bugs.

I have tried using the vmware image and even converted it to qemu-kvm. but it compiles too slowly on my virtual machine,/laptop.

so thanks for all your help.

ameeno avatar May 07 '20 19:05 ameeno

hello, there are some problems with it reading thin volumes, so still not good. but thanks for trying.

ameeno avatar May 08 '20 14:05 ameeno