zbm-dev / zfsbootmenu

ZFS Bootloader for root-on-ZFS systems with support for snapshots and native full disk encryption
https://zfsbootmenu.org
MIT License
841 stars 65 forks source link

The contrib/remote-ssh-build.sh script is failing because the build container's xbps needs updating #680

Closed OtherJohnGray closed 1 week ago

OtherJohnGray commented 1 week ago

ZFSBootMenu build source

Container build, dracut

ZFSBootMenu version

2.3.0

Boot environment distribution

Void Linux

Problem description

Running remote-ssh-build.sh produces the following output:

[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: [1902KB 0%] 122MB/s ETA: 00m00s
x86_64-repodata: [1902KB 10%] 190KB/s ETA: 00m08s
x86_64-repodata: [1902KB 92%] 867KB/s ETA: 00m00s
x86_64-repodata: 1902KB [avg rate: 937KB/s]
The 'xbps' package must be updated, please run `xbps-install -u xbps`
ERROR: failed to install requested packages

Steps to reproduce

sudo su
mkdir /tmp/zfsbootmenu
cd /tmp/zfsbootmenu
curl -O https://raw.githubusercontent.com/zbm-dev/zfsbootmenu/refs/heads/master/contrib/remote-ssh-build.sh
curl -O https://raw.githubusercontent.com/zbm-dev/zfsbootmenu/refs/heads/master/zbm-builder.sh
chmod a+x *.sh
 ./remote-ssh-build.sh
ahesford commented 1 week ago

This is almost certainly an ephemeral upstream issue. I just ran

zbm-builder.sh -- -u

and the entire process succeeded.

Please try again now that Void has settled down.

OtherJohnGray commented 1 week ago

zbm-builder.sh -- -u worked, but the original bug still seems to persist.

root@practice:/tmp# mkdir /tmp/zfsbootmenu
root@practice:/tmp# cd /tmp/zfsbootmenu
root@practice:/tmp/zfsbootmenu# curl -O https://raw.githubusercontent.com/zbm-dev/zfsbootmenu/refs/heads/master/contrib/remote-ssh-build.sh
root@practice:/tmp/zfsbootmenu# curl -O https://raw.githubusercontent.com/zbm-dev/zfsbootmenu/refs/heads/master/zbm-builder.sh
root@practice:/tmp/zfsbootmenu# chmod a+x *.sh
root@practice:/tmp/zfsbootmenu# ./zbm-builder.sh -- -u

[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: [1902KB 0%] 93MB/s ETA: 00m00s
x86_64-repodata: [1902KB 10%] 184KB/s ETA: 00m08s
. . . . . . . . . . . . . 
zfsbootmenu-2.3.0/zfsbootmenu/profiling/
zfsbootmenu-2.3.0/zfsbootmenu/profiling/profiling-lib.sh
zfsbootmenu-2.3.0/zfsbootmenu/zbm-release
Updating zfsbootmenu/zbm-release
Updating bin/generate-zbm
No initramfs generator specified; using dracut
Creating ZFSBootMenu 2.3.0 from kernel /boot/vmlinuz-6.1.69_1
Created new UEFI image /build/build/vmlinuz.EFI
Created initramfs image /build/build/initramfs-bootmenu.img
Created kernel image /build/build/vmlinuz-bootmenu
root@practice:/tmp/zfsbootmenu# ./remote-ssh-build.sh 
Generating public/private rsa key pair.
Your identification has been saved in /tmp/zfsbootmenu/dropbear/ssh_host_rsa_key
Your public key has been saved in /tmp/zfsbootmenu/dropbear/ssh_host_rsa_key.pub
The key fingerprint is:
SHA256:AsuPH90w0JWcIjY1IIdFPkrFVkmoAxtITMilOA3xe1k zbm-server-key
The key's randomart image is:
+---[RSA 3072]----+
|O=...=**=o.o     |
|+*+ .=B.oo+      |
|o.o+o+Eo..       |
| ..+o* o         |
|  . *.. S        |
|   . o o +       |
|    . o . .      |
|     . .         |
|      .          |
+----[SHA256]-----+
Generating public/private ecdsa key pair.
Your identification has been saved in /tmp/zfsbootmenu/dropbear/ssh_host_ecdsa_key
Your public key has been saved in /tmp/zfsbootmenu/dropbear/ssh_host_ecdsa_key.pub
The key fingerprint is:
SHA256:lAhcMBPQvzPkv/R3PcSAPKe3CHsKCjdN7ZKZlhfhWlM zbm-server-key
The key's randomart image is:
+---[ECDSA 256]---+
|  .+*+.          |
|    o+ . .       |
|     .. o..E.    |
|      o.o o+ o   |
|     o oS*  + o  |
|      B O.o. . o |
|   . o #.oo o o. |
|    o +.=o o.....|
|     .  .o+. .  .|
+----[SHA256]-----+
Generating public/private ed25519 key pair.
Your identification has been saved in /tmp/zfsbootmenu/dropbear/ssh_host_ed25519_key
Your public key has been saved in /tmp/zfsbootmenu/dropbear/ssh_host_ed25519_key.pub
The key fingerprint is:
SHA256:uVEJFFTJN9Itk0/1uFnFdJs7s86dd6rZ+C8VMzpioHM zbm-server-key
The key's randomart image is:
+--[ED25519 256]--+
|       o=+.o o +=|
|         .+.B o.B|
|          oo *.oo|
|         +    .B.|
|        S .   +++|
|       o E o o  =|
|        + . . .o |
|             ++ =|
|            +o+B=|
+----[SHA256]-----+
Cannot find /tmp/zfsbootmenu/dropbear/authorized_keys, copying from /home/user/.ssh/authorized_keys
'/home/user/.ssh/authorized_keys' -> '/tmp/zfsbootmenu/dropbear/authorized_keys'
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: [1902KB 0%] 49MB/s ETA: 00m00s
x86_64-repodata: [1902KB 10%] 186KB/s ETA: 00m08s
x86_64-repodata: [1902KB 37%] 345KB/s ETA: 00m03s
x86_64-repodata: [1902KB 93%] 595KB/s ETA: 00m00s
x86_64-repodata: 1902KB [avg rate: 638KB/s]
The 'xbps' package must be updated, please run `xbps-install -u xbps`
ERROR: failed to install requested packages
ahesford commented 1 week ago

Try running the script as

./remote-ssh-build.sh  -- -u

or modifying the call to zbm-builder.sh to include a -u alongside the -p arguments already passed.

JohnG-cc commented 1 week ago
 -- -u

worked with the unmodified script, thanks!