You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried this on my system, both with snap distrobuilder latest/stable and latest/edge, same output.
While looking at the code, ubuntu-http.go > line 70: strconv.Atoi(lines[len(lines)-2]) attempts to parse a line of out the output of the fdisk command. I ran that command on my system, and the value 4096 is indeed preceded by a space on that line which causes strconv.Atoi to throw a fit.
I pulled the code locally and changed that line to the below, which seemed to work fine to get past the error: strconv.Atoi(strings.TrimSpace(lines[len(lines)-2]))
I'm just not sure if this is an actual bug or if I'm doing something different/unusual in my ubuntu-core.yaml than I should be.
Hmm, I think we should actually remove the ubuntu-core plugin. We gave up on those images quite a while ago as the proper operation of Ubuntu Core inside of a container is very very tricky.
Initial command/output
I tried this on my system, both with snap distrobuilder latest/stable and latest/edge, same output.
While looking at the code, ubuntu-http.go > line 70: strconv.Atoi(lines[len(lines)-2]) attempts to parse a line of out the output of the fdisk command. I ran that command on my system, and the value 4096 is indeed preceded by a space on that line which causes strconv.Atoi to throw a fit.
I pulled the code locally and changed that line to the below, which seemed to work fine to get past the error:
strconv.Atoi(strings.TrimSpace(lines[len(lines)-2]))
I'm just not sure if this is an actual bug or if I'm doing something different/unusual in my ubuntu-core.yaml than I should be.
fdisk -l -o Start /tmp/distrobuilder/ubuntu-20-amd64/ubuntu-core-20-amd64.img
fdisk --version
snap list output
ubuntu-core.yaml
System Info
The text was updated successfully, but these errors were encountered: