radxa-repo / rbuild

Radxa Image Builder (Maintenance mode)
https://radxa-repo.github.io/rbuild/
GNU General Public License v3.0
53 stars 43 forks source link

sgdisk: command not found #4

Closed mcolladose closed 1 year ago

mcolladose commented 1 year ago

Hi, I'm trying rbuild and I guess it fails with an error:

marck@titan …/rbuild $ ./rbuild -s -t radxa-cm3-rpi-cm4-io bullseye cli
latest: Pulling from godebos/debos
Digest: sha256:e58660dad657f16e3389f1f3ca0980e29686b679c02e732bfa6045689ec18bb1
Status: Image is up to date for godebos/debos:latest
docker.io/godebos/debos:latest
Using debian_bullseye_base.tar intermediate rootfs.
Using debian_bullseye_cli.tar rootfs.
[...]
2023/01/19 14:28:37 ==== Install dkms packages ====
2023/01/19 14:28:37 ==== No operation ====
2023/01/19 14:28:37 ==== Preload device tree overlay from default kernel ====
2023/01/19 14:28:49 ==== Product specific setup ====
2023/01/19 14:28:49 ==== Clean up rootfs ====
2023/01/19 14:28:49 ==== Clean up rootfs ====
Powering off.
2023/01/19 14:28:50 ==== Recipe done ====
./rbuild: line 50: sgdisk: command not found
./rbuild: line 53: sgdisk: command not found
Unable to locate root partition number.
Total execution time: 00:04:46

Everything go smooth until this point.

SGdisk is installed:

root@titan:/# whereis sgdisk
sgdisk: /usr/sbin/sgdisk /usr/share/man/man8/sgdisk.8.gz

I'm doing on a Debian bookworm/sid Linux titan 6.0.0-6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.12-1 (2022-12-09) x86_64 GNU/Linux

sgdisk can only b called by root.