Comments (16)
Ok, last fix of a typo works on my end. It builds and there is an image and all
from custompios.
I can confirm that everything is fixed now, thanks a lot for your work 👍
from custompios.
Great. If you are making a distribution feel free to share it in the list in the readme file
from custompios.
Looks like its related to: moby/qemu#19
Long talk about it here:
docker/buildx#314
The first issue suggest updating the version of qemu, it looks like a qemu bug
from custompios.
Thanks for the hint, somehow I didn't find this when googling yesterday. I'll try updating qemu and close this issue if it works 👍
from custompios.
Uh - that might be a stuipd question, but how do I try that with a newer version of qemu? I haven't though about that when I wrote the other comment earlier, but if I understand correctly, the qemu running inside your guysoft/custompios:devel
docker image would have to be updated?
from custompios.
Ok looks like we were using old buster, and the right qemu was only available on Debian bullseye backports, I pushed that change to devel, the new custompios container should build with qemu 7.1+. Would be great if you could pull that and validate it fixes this issue :)
from custompios.
Thanks for updating. However, now I get a different error:
+++ echo 'Adding 1000 MB to partition 2 of 2022-09-22-raspios-bullseye-arm64-lite.img'
Adding 1000 MB to partition 2 of 2022-09-22-raspios-bullseye-arm64-lite.img
++++ awk '{print $4-0}'
++++ grep 2022-09-22-raspios-bullseye-arm64-lite.img2
++++ sfdisk -d 2022-09-22-raspios-bullseye-arm64-lite.img
/CustomPiOS/common.sh: line 282: sfdisk: command not found
+++ start=
/CustomPiOS/common.sh: line 283: *512: syntax error: operand expected (error token is "*512")
+ exit 1
Error: Process completed with exit code 1.
I don't have more info available right now as I'm just on my phone.
I can add additional details later today.
from custompios.
I'm sorry to jump on this issue, but I'm having the same error:
label-id: 0x63ee4f38
device: 2022-09-22-raspios-bullseye-arm64.img
unit: sectors
sector-size: 512
2022-09-22-raspios-bullseye-arm64.img1 : start= 8192, size= 524288, type=c
2022-09-22-raspios-bullseye-arm64.img2 : start= 532480, size= 8208384, type=83'
CustomPiOS/src/common.sh: line 191: 0
8192
532480 * 512: syntax error in expression (error token is "8192
532480 * 512")
+ exit 1
maybe there's a trim missing somewhere? Should I open a new issue for this?
from custompios.
@guysoft with your latest commit, the sfdisk not found
error is now gone. However, the second error (which @tampe125 is also experiencing) still exists.
from custompios.
Hey, fixed that too, and tested, it should work now
from custompios.
@tampe125 Yes, please open a second issue and provide a full log
from custompios.
Hang on @tampe125 something indeed broke, no need to open an issue. Working on it
from custompios.
Ok, so the issue is that
- qemu was too old so the docker image had to be updated to bullseye with backports for qemu 7.1+
- bullseye packaged sfdisk default output changed making the awk fail, so what I did is switch to the new
--json
sfdisk format option that should remain standardized - also added jq as a requirement to parse
--json
format
Its still building here but its looking good.
The reason my local tests failed to spot this before was that they didn't pull my own git to the build server correctly, fixed that too.
from custompios.
@guysoft Not to pile on here, but I had the second error above as well, and now that's fixed but I'm getting an exciting third error. I assume it's related, given the timing and all, but should I make a new issue?
+++ e2fsck -fy /dev/loop3
e2fsck 1.46.5 (30-Dec-2021)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/loop3
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
from custompios.
I now get the same error @ada-phillips gets.
++++ jq '.partitiontable.partitions[] | select(.node == "2022-09-22-raspios-bullseye-arm64-lite.img1").start' +++ start=8192 ++++ jq '.partitiontable.partitions[] | select(.node == "2022-09-22-raspios-bullseye-arm64-lite.img1").size' +++ e2fsize_blocks=524288 +++ offset=4194304 +++ detach_all_loopback 2022-09-22-raspios-bullseye-arm64-lite.img ++++ grep 2022-09-22-raspios-bullseye-arm64-lite.img ++++ losetup ++++ awk '{ print $1 }' +++ test_for_image 2022-09-22-raspios-bullseye-arm64-lite.img +++ '[' '!' -f 2022-09-22-raspios-bullseye-arm64-lite.img ']' ++++ losetup -f --show -o 4194304 2022-09-22-raspios-bullseye-arm64-lite.img +++ LODEV=/dev/loop3 +++ trap 'losetup -d $LODEV' EXIT +++ e2fsck -fy /dev/loop3 e2fsck 1.46.2 (28-Feb-2021) ext2fs_open2: Bad magic number in super-block e2fsck: Superblock invalid, trying backup blocks... e2fsck: Bad magic number in super-block while trying to open /dev/loop3The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193
or
e2fsck -b 32768/dev/loop3 contains a vfat file system labelled 'boot'
++ losetup -d /dev/loop3
- exit 8
Error: Process completed with exit code 8.
from custompios.
Related Issues (20)
- Fails building on DietPi - no sshd_config HOT 1
- Fails to resize partition after April 24 release HOT 5
- RPM based distro support HOT 3
- BTRFS needs to resize correctly
- Bug /dev/loop0 Partition don't follow the config to resize HOT 5
- Add secondary root partition HOT 1
- qemu_boot requires xz-compressed images to live in /tmp HOT 6
- use POSIX parameter expansion for assigning default values HOT 2
- dangling files after build eat diskspace. HOT 1
- allow out-of-tree builds HOT 2
- allow distro-relative paths in custompios_path HOT 7
- allow one to alter the user(name) without setting a default password HOT 3
- Build within container abruptly stops on current `devel` image HOT 3
- permissions of the generated image file HOT 3
- Script ./src/make_custom_pi_os returns unexpected error HOT 12
- CustomPiOS v2 - support for remote modules and meta modules and more HOT 14
- docker build: failed to set up loop device: No such file or directory HOT 1
- Decided to improve the logo, and incorporate the new FullPageOS design into it HOT 3
- Skip "user rename" on first boot and $BASE_USER HOT 1
- Moving scripts from /home/pi/scripts to /opt/custompios/scripts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from custompios.