sgielen/picl-k3os-image-generator

Issue Installing

Closed this issue · 2 comments

Having an issue where the build script is failing to unpack a package in the root-resize

macOS Cataline 10.15.6
Docker Engine v19.03.13

Built the image:

docker build . -t picl-builder:latest

Ran:

docker run -e TARGET=raspberrypi -v ${PWD}:/app -v /dev:/dev --privileged picl-builder:latest

Results:

== Making image and filesystems... ==
sh: 1: udevadm: not found
sh: 1: udevadm: not found
sh: 1: udevadm: not found
sh: 1: udevadm: not found
sh: 1: udevadm: not found
sh: 1: udevadm: not found
sh: 1: udevadm: not found
sh: 1: udevadm: not found
sh: 1: udevadm: not found
sh: 1: udevadm: not found
/dev/loop5: msdos partitions 1 2
mkfs.fat 4.1 (2017-01-24)
mke2fs 1.44.1 (24-Mar-2018)
Creating filesystem with 243968 4k blocks and 61056 inodes
Filesystem UUID: b7ed84b6-cbea-4faa-8a0a-1d4515211cc8
Superblock backups stored on blocks:
	32768, 98304, 163840, 229376

Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

tune2fs 1.44.1 (24-Mar-2018)
Setting interval between checks to 2592000 seconds
== Initializing root... ==
== Initializing boot... ==
== Installing... ==
tar: ./usr/share/doc/parted/changelog.Debian.gz: Cannot utime: No such file or directory
tar: Exiting with failure status due to previous errors

https://github.com/sgielen/picl-k3os-image-generator/blob/master/build-image.sh#L336

image

I was having the same problem with that you are using my laptop that has the same software versions that you mentioned. This is what I needed to do to get the Raspberry PI portion of the build to work for me. The Orange PI portion still fails but I have a Raspberry PI so I didn't bother looking into the Orange PI failures.

I hope this helps!

diff --git a/Dockerfile b/Dockerfile
index 89e25a5..1d2a032 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,7 @@
 FROM ubuntu:bionic
 
 RUN apt-get update && apt-get install -y \
-    wget parted dosfstools binutils p7zip-full \
+    wget parted udev dosfstools binutils p7zip-full \
     sudo xz-utils jq u-boot-tools
 
 # The repository should be mounted at /app.
diff --git a/build-image.sh b/build-image.sh
index 099e66d..2fd6f9f 100755
--- a/build-image.sh
+++ b/build-image.sh
@@ -262,7 +262,7 @@ K3OS_VERSION=$(ls --indicator-style=none root/k3os/system/k3os | grep -v current
 ## Install busybox
 unpack_deb() {
 	ar x deps/$1
-	sudo tar -xf data.tar.[gx]z -C $2
+	sudo tar -xf data.tar.[gx]z -C $2 -m
 	rm -f data.tar.gz data.tar.xz control.tar.gz control.tar.xz debian-binary
 }

Closing all issues, because the project is archived. Thank you for being a contributor and/or user!