Skip to content
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

Shortcuts missing from /usr/bin #616

Closed
Sithuk opened this issue Apr 12, 2024 · 7 comments
Closed

Shortcuts missing from /usr/bin #616

Sithuk opened this issue Apr 12, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@Sithuk
Copy link

Sithuk commented Apr 12, 2024

ZFSBootMenu build source

Local build, dracut

ZFSBootMenu version

master

Boot environment distribution

No response

Problem description

The symlinks such as "zbm" and "poweroff" are missing from the zfs shell /usr/bin in a fresh install using the master. I am testing remote access to unlock a zfs on luks drive.

Steps to reproduce

  1. Compile from master.
  2. Reboot.
  3. Type zbm to start zfsbootmenu.
@Sithuk Sithuk added the bug Something isn't working label Apr 12, 2024
@zdykstra
Copy link
Member

zdykstra commented Apr 12, 2024

Are you SSH'ing in to ZFSBootMenu? If so, what SSH server do you have embedded in your image? What's the value of the PATH environment variable? What distribution are you building this on?

Those should be available at /usr/sbin - are they?

@Sithuk
Copy link
Author

Sithuk commented Apr 13, 2024

I am SSH'ing in, yes.
Dropbear is embedded (SSH-2.0-dropbear_2020.81).
The PATH environment variable is: /zbm/bin:/usr/sbin:/usr/bin:/sbin:/bin
I built on Ubuntu 22.04.
"zbm" is not present in /usr/sbin of the zfsbootmenu initramfs shell. I didn't find it when I did a search using find either.

I can type "zfsbootmenu" and zfsbootmenu presents me with a prompt to enter the luks password and then successfully starts zfsbootmenu on correct entry of the password.

@zdykstra
Copy link
Member

zdykstra commented May 1, 2024

Is this issue still present in a build from the master branch? This was not able to be replicated locally.

@Sithuk
Copy link
Author

Sithuk commented May 4, 2024

Just carried out a test with the master branch. The zbm shortcut is still missing unfortunately. "zfsbootmenu" works fine.

@Sithuk
Copy link
Author

Sithuk commented May 12, 2024

I've updated the ubuntu zfsbootmenu install script. You can download the latest from the link below. That should help you duplicate the lack of zbm shortcut that I have experienced.
https://github.com/Sithuk/ubuntu-server-zfsbootmenu

@ahesford
Copy link
Member

This is a problem with the installation script called from the Makefile. I'll propose a fix later today.

@ahesford
Copy link
Member

If the fix in #628 doesn't solve this problem, please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants