Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory while opening /dev/loop0p2 #215

Open
marcelomanzo opened this issue Sep 8, 2022 · 3 comments
Open

No such file or directory while opening /dev/loop0p2 #215

marcelomanzo opened this issue Sep 8, 2022 · 3 comments

Comments

@marcelomanzo
Copy link

Hi,

I am struggling to generate an rpi image using Gitlab CI - Docker Image, please note that works fine using wls - ubuntu.

  1. Debian Docker Image:
    build_os_dist:
    image: "debian:bookworm-slim"
    stage: .pre
    script:

Result:
image

I am wondering if you have any suggestion.

@marcelomanzo
Copy link
Author

Same issue when using docker:
build_os_dist:
image: "docker:latest"
stage: .pre
services:
- docker:dind
script:
- cd os_dist
- docker run --rm --privileged -v /dev:/dev -v ${PWD}:/build mkaczanowski/packer-builder-arm build magicbox-os_arm64.json
tags:
- linux
artifacts:
expire_in: 1 hr
paths:
- os_dist/*.zip

image

@marcelomanzo marcelomanzo changed the title Building RPI Image using Gitlab CI - Docker Image No such file or directory while opening /dev/loop0p2 Sep 8, 2022
@marcelomanzo
Copy link
Author

if I use reuse instead of resize, the error message changes:
arm: unpacking /root/.cache/packer/1cd614d18502c032fe64e391454d304d9d2b5a0a.xz to magicbox-os-arm64.img
arm: unpacking with custom command: [xz -d /tmp/image555151982/1cd614d18502c032fe64e391454d304d9d2b5a0a.xz]
arm: mapping image magicbox-os-arm64.img to free loopback device
arm: image magicbox-os-arm64.img mapped to /dev/loop0
arm: mounting /dev/loop0p2 to /tmp/707859693
==> arm: exit status 32
==> arm: exit status 32
==> arm: exit status 32
Build 'arm' errored after 1 minute 7 seconds: build was halted
==> Wait completed after 1 minute 7 seconds
==> Some builds didn't complete successfully and had errors:
--> arm: build was halted
==> Builds finished but no artifacts were created.
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1

@ThijsVredenbregt
Copy link

Did you figure this out ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants