-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initramfs fails to build image with lvm
in $PATH
#213
Comments
Unrelated, but my disk is bound to |
Note: I am using booster 0.10 |
Booster does add It adds the |
Note that you can use |
@StratusFearMe21 what Linux distro do you use? |
I use Artix Linux with the s6 init system |
|
It is really weird then. Booster uses Let's start debugging this problem. Could you please provide output of Then I will add extra debug statements to booster source code so you can compile it, then run and get more information about files booster finds. |
Sure, I've optimized my config a little since I opened this, but the problem still stands modules_force_load: padlock_aes,aesni_intel,xts,amdgpu
universal: false
compression: lz4
strip: true
extra_files: /usr/bin/lvm
enable_lvm: true This is what I get with this config
And this is without
I notice that in the second list, |
Interesting development. It appears that my
|
Looking at my
|
Until now we used `exec.LookPath` golang function to lookup binaries. This function depends on user's $PATH envvar and the order directories specified there. This could mess with our image symlink tree. What we want is to make sure that we lookup/add files at non-symlinked directories first (i.e. /usr/bin). Closes #213
I propose a different solution. Do not rely on user's $PATH at all, and always lookup in I pushed a potential fix to |
Yep, it explains the issue. |
Until now we used `exec.LookPath` golang function to lookup binaries. This function depends on user's $PATH envvar and the order directories specified there. This could mess with our image symlink tree. What we want is to make sure that we lookup/add files at non-symlinked directories first (i.e. /usr/bin). Closes #213
Yep, the |
When booting with this initramfs, it fails because it can't find the
lvm
executable in it's$PATH
. Extracting the generated initramfs usingunzstd
, followed bycpio -i
, shows that booster did not include thelvm
binary in the initramfs, despite there being an entry for it in the cpio archiveThis is my config
Adding the config value
Seems to fix the issue.
This config value
Does not fix the issue
Also worth noting is that booster fails to create a /usr/bin directory as well, which results in a broken
/bin
symlink. This problem may be the result of booster's generator trying to to put thelvm
binary atbin
, which is a broken symlinkThe text was updated successfully, but these errors were encountered: