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

Build installer image is fail #108

Open
zongxin1993 opened this issue Oct 30, 2024 · 1 comment
Open

Build installer image is fail #108

zongxin1993 opened this issue Oct 30, 2024 · 1 comment

Comments

@zongxin1993
Copy link

Local OS : ubuntu22.04
isar version:bb5af4f9fc202c66584f38066681b36eaca7edcd
kas build config:
`

Automatically generated by kas 4.5

_source_dir: /repo
build_system: isar
header:
includes:

  • kas/isar.yaml
  • kas/distro/ubuntu-jammy.yaml
  • kas/machine/x86-pc.yaml
  • kas/image/isar-image-installer.yaml
  • kas/package/pkg_cowsay.yaml
  • kas/package/pkg_enable-fsck.yaml
  • kas/package/pkg_example-raw.yaml
  • kas/package/pkg_example-module.yaml
  • kas/package/pkg_example-prebuilt.yaml
  • kas/package/pkg_expand-on-first-boot.yaml
  • kas/package/pkg_isar-exclude-docs.yaml
  • kas/package/pkg_isar-disable-apt-cache.yaml
  • kas/package/pkg_kselftest.yaml
  • kas/package/pkg_samefile.yaml
  • kas/package/pkg_sshd-regen-keys.yaml
  • kas/package/pkg_sshd-regen-keys.yaml
  • kas/package/packages-distro.yaml
  • kas/opt/user-isar.yaml
  • kas/opt/image-fstypes.yaml
  • kas/opt/crosscompile.yaml
  • kas/opt/ccache.yaml
    version: 17
    local_conf_header:
    __menu_config_vars: |-
    INSTALLER_TARGET_IMAGE = "isar-image-base"
    KAS_IMAGE_PREINSTALL = "fdisk iproute2 iputils-ping isc-dhcp-client"
    KAS_USER_ISAR_PASSWORD = "isar"
    KAS_IMAGE_FSTYPES = ""
    menu_configuration:
    CACHE_DEB_SRC: false
    COMPAT_ARCH: false
    DEBIAN_BOOKWORM: false
    DEBIAN_BULLSEYE: false
    DEBIAN_BUSTER: false
    DEBIAN_SID: false
    DEBIAN_TRIXIE: false
    IMAGE_BASE: false
    IMAGE_CI: false
    IMAGE_DEBUG: false
    IMAGE_INSTALLER: true
    INSTALL_EMPTY: false
    INSTALL_IMAGE_BASE: true
    INSTALL_IMAGE_DEBUG: false
    ISAR_CROSS_COMPILE: true
    KAS_IMAGE_FSTYPES: ''
    KAS_IMAGE_PREINSTALL: fdisk iproute2 iputils-ping isc-dhcp-client
    KAS_USER_ISAR_PASSWORD: isar
    MACHINE_QEMU_AMD64: false
    MACHINE_QEMU_ARM64: false
    MACHINE_X86_PC: true
    MIRROR_UBUNTU: false
    PACKAGE_COWSAY: true
    PACKAGE_ENABLE_FSCK: true
    PACKAGE_EXAMPLE_MODULE: true
    PACKAGE_EXAMPLE_PREBUILT: true
    PACKAGE_EXAMPLE_RAW: true
    PACKAGE_EXPAND_ON_FIRST_BOOT: true
    PACKAGE_HELLO: false
    PACKAGE_HELLO_ISAR: false
    PACKAGE_ISAR_CI_SSH_SETUP: true
    PACKAGE_ISAR_DISABLE_APT_CACHE: true
    PACKAGE_ISAR_EXCLUDE_DOCS: true
    PACKAGE_KSELFTEST: true
    PACKAGE_PREBUILT_DOCKER_IMG: false
    PACKAGE_PREBUILT_PODMAN_IMG: false
    PACKAGE_SAMEFILE: true
    PACKAGE_SSHD_REGEN_KEYS: true
    RASPIOS_BOOKWORM: false
    RASPIOS_BULLSEYE: false
    UBUNTU_FOCAL: false
    UBUNTU_JAMMY: true
    USER_ISAR: true
    USER_ROOT: false
    USE_APT_SNAPSHOT: false
    USE_CCACHE: true
    `

error msg:
`
ERROR: mc:isar-installer:isar-image-installer-1.0-r0 do_image_wic: ExecutionError('/build/tmp/work/ubuntu-jammy-amd64/isar-image-installer-x86-pc/1.0-r0/temp/run.do_image_wic.79302', 100, None, None)
ERROR: Logfile of failure stored in: /build/tmp/work/ubuntu-jammy-amd64/isar-image-installer-x86-pc/1.0-r0/temp/log.do_image_wic.79302
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_wic
| Creating /etc/schroot/chroot.d/isar-builder-a6104765-40f2-4a84-8a14-71692bddbda0-79302
| Started session: isar-builder-a6104765-40f2-4a84-8a14-71692bddbda0-79302-c9473e34-2f93-4907-bf97-6d9fcc17db84
| Installing imager deps: bmap-tools dosfstools e2fsprogs fdisk gdisk grub-efi-amd64-bin mtools parted python3-distutils syslinux syslinux-common systemd-boot tar util-linux
| Get:1 file:/isar-apt isar InRelease
| Ign:1 file:/isar-apt isar InRelease
| Get:2 file:/isar-apt isar Release [5099 B]
| Get:2 file:/isar-apt isar Release [5099 B]
| Get:3 file:/isar-apt isar Release.gpg
| Ign:3 file:/isar-apt isar Release.gpg
| Get:4 file:/isar-apt isar/main Sources [1107 B]
| Get:5 file:/isar-apt isar/main amd64 Packages [3258 B]
| Reading package lists...
| Reading package lists...
| Building dependency tree...
| Reading state information...
| E: Unable to locate package systemd-boot
ERROR: Task (mc:isar-installer:/build/../repo/meta-isar/recipes-core/images/isar-image-installer.bb:do_image_wic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 337 tasks of which 307 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
mc:isar-installer:/build/../repo/meta-isar/recipes-core/images/isar-image-installer.bb:do_image_wic
Summary: There were 2 WARNING messages.
Summary: There was 1 ERROR message, returning a non-zero exit code.
2024-10-30 00:53:44 - ERROR - Command "/repo/bitbake/bin/bitbake -c build mc:isar-installer:isar-image-installer" failed with error 1
`

@amikan
Copy link
Collaborator

amikan commented Oct 30, 2024

Hello @zongxin1993
Thanks for reporting. There is no 'systemd-boot' package in jammy, while it is required by image installer.
So it probably need some override for targets like jammy.
We will check this.

amikan added a commit that referenced this issue Nov 11, 2024
Building of isar-installer with Ubuntu Jammy fails on:

| E: Unable to locate package systemd-boot

Use distro-related variable for bootloader package dependency to fix
this issue.

Fixes issue #108

Reported-by: Zong Xin <[email protected]>
Signed-off-by: Anton Mikanovich <[email protected]>
WiseLord pushed a commit that referenced this issue Nov 12, 2024
Building of isar-installer with Ubuntu Jammy fails on:

| E: Unable to locate package systemd-boot

Use distro-related variable for bootloader package dependency to fix
this issue.

Fixes issue #108

Reported-by: Zong Xin <[email protected]>
Signed-off-by: Anton Mikanovich <[email protected]>
WiseLord pushed a commit that referenced this issue Nov 18, 2024
Building of isar-installer with Ubuntu Jammy fails on:

| E: Unable to locate package systemd-boot

Use distro-related variable for bootloader package dependency to fix
this issue.

Fixes issue #108

Reported-by: Zong Xin <[email protected]>
Signed-off-by: Anton Mikanovich <[email protected]>
WiseLord pushed a commit that referenced this issue Nov 20, 2024
Building of isar-installer with Ubuntu Jammy fails on:

| E: Unable to locate package systemd-boot

Use distro-related variable for bootloader package dependency to fix
this issue.

Fixes issue #108

Reported-by: Zong Xin <[email protected]>
Signed-off-by: Anton Mikanovich <[email protected]>
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