zfsbootmenu icon indicating copy to clipboard operation
zfsbootmenu copied to clipboard

Shortcuts missing from /usr/bin

Open Sithuk opened this issue 1 year ago • 6 comments

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 avatar Apr 12 '24 20:04 Sithuk

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?

zdykstra avatar Apr 12 '24 20:04 zdykstra

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.

Sithuk avatar Apr 13 '24 06:04 Sithuk

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

zdykstra avatar May 01 '24 13:05 zdykstra

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

Sithuk avatar May 04 '24 10:05 Sithuk

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

Sithuk avatar May 12 '24 06:05 Sithuk

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

ahesford avatar May 12 '24 17:05 ahesford

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

ahesford avatar May 15 '24 14:05 ahesford