clearlinux / clr-installer

Clear Linux* OS Installer
GNU General Public License v3.0
92 stars 42 forks source link

Error with lockfile when running mixer build image #797

Closed willtoth closed 10 months ago

willtoth commented 10 months ago

Describe the bug I wasn't sure where to file this bug, but it seems to be closest related to #720 and related to clr-installer. If not, I can move it elsewhere. Thanks.

I'm following the guide here but when running sudo mixer build image --template live-server.yaml I get this error:

will@clr-e4fa5cf6d7d74d6990971e085678fbe4~/mix $ sudo mixer build image --template live-server.yaml
Password:
Building image, please wait...
Error: exit status 1
Error: Couldn't build image: failed to create image

and live-server.log

2023/11/07 11:51:10 [DBG] Log Level set to LogLevelDebug (4)
2023/11/07 11:51:10 [INF] clr-installer: 2.7.6, built on 2023-08-11_22:10:27_UTC
2023/11/07 11:51:10 [DBG] Loading config file: live-server.yaml
2023/11/07 11:51:10 [INF] Querying Clear Linux version
2023/11/07 11:51:10 [ERR] Lockfiles must be given as absolute path names

To Reproduce Steps to reproduce the behavior: It may be difficult for me to say the exact steps. I am following this guide, two differences are 1) I have an RPM file in local-rpms and 2) I am using live-server.yaml as a starting point.

Expected behavior I expect either the image to build, or on failure, a message that is actionable. As it stands, I have no idea how to proceed to try and fix this.

Environment (please complete the following information):

Distribution:      Clear Linux OS
Installed version: 40320
Version URL:       https://cdn.download.clearlinux.org/update
Content URL:       https://cdn.download.clearlinux.org/update
clr-installer: 2.7.6

Platform: 11th gen intel NUC clone

Vendor ID:               GenuineIntel
  Model name:            11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz

               total        used        free      shared  buff/cache   available
Mem:        32589212     2026184     3233980      489564    28330696    30563028
Swap:          65532         256       65276

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
nvme0n1     259:0    0 238.5G  0 disk
├─nvme0n1p1 259:1    0   149M  0 part
└─nvme0n1p2 259:2    0 238.3G  0 part /
willtoth commented 10 months ago

sudo mixer build image --template $PWD/live-server.yaml🤦

Can this just expand the file directory instead of throwing hard to debug errors?