Giter VIP home page Giter VIP logo

fedora-atomic-dib's Introduction

Usage

To build the image:

INSTALL_DEPS=1 DIB_RELEASE=27 ./fedora_atomic_dib/setup.sh

INSTALL DEPS=1 installs all the required packages to run diskimage-builder. It is only necessary to include it the first time.

To boot into the image:

./fedora-atomic-dib/gencloudinitiso.sh
DIB_RELEASE=27 sudo -E ./fedora-atomic-dib/qemu.sh

Goal:

  • building Fedora Atomic 27 image
  • using diskimage-builder 2.12.2
  • on Centos 7

Result:

Problems:

  • Still need to put selinux into permissive mode on grub config in order to successfully boot into the image.
  • Can't use the 'baremetal' element as fedora-atomic depends on vm element.
  • Can't use dracut-network/dracut-regenerate as fedora-atomic cleanup removes dracut (https://bugs.launchpad.net/magnum/+bug/1699771).
  • Have to manually specify kernel & initrd pattern for dracut-network/dracut-regenerate.
  • Specifying DIB_RELEASE=25 does not give you a fedora atomic 25 image (https://bugs.launchpad.net/magnum/+bug/1699766).

fedora-atomic-dib's People

Contributors

brtkwr avatar

Watchers

James Cloos avatar Stig Telfer avatar

fedora-atomic-dib's Issues

cannot access '//boot/ostree/fedora-atomic-*/vmlinuz*': No such file or directory

  • Steps to reproduce:

Set the following values:

export DIB_BAREMETAL_KERNEL_PATTERN='ostree/fedora-atomic-*/vmlinuz*'
export DIB_BAREMETAL_INITRD_PATTERN='ostree/fedora-atomic-*/initramfs-*'
  • Expected behaviour:

Run after 80-fedora-atomic image has been loaded.

  • Current behaviour:

Running before 80-fedora-atomic image has been loaded (from what I understand).

2018-03-27 15:10:29.298 | dib-run-parts 50-bootloader completed
2018-03-27 15:10:29.299 | dib-run-parts Running /tmp/in_target.d/finalise.d/50-dracut-regenerate
2018-03-27 15:10:29.405 | + dnf -v -y install cryptsetup
2018-03-27 15:10:33.906 | + '[' install == install ']'
2018-03-27 15:10:33.906 | + '[' dnf == dnf ']'
2018-03-27 15:10:33.906 | + dnf mark install cryptsetup
2018-03-27 15:10:34.320 | + dnf -v -y install lvm2
2018-03-27 15:10:41.228 | Running in chroot, ignoring request.
2018-03-27 15:10:41.682 | + '[' install == install ']'
2018-03-27 15:10:41.682 | + '[' dnf == dnf ']'
2018-03-27 15:10:41.682 | + dnf mark install lvm2
2018-03-27 15:10:42.049 | + set -eu
2018-03-27 15:10:42.049 | + set -o pipefail
2018-03-27 15:10:42.049 | + source /lib/diskimage-builder/img-functions
2018-03-27 15:10:42.049 | + select_boot_kernel_initrd /
2018-03-27 15:10:42.049 | + TARGET_ROOT=/
2018-03-27 15:10:42.049 | + BOOTDIR=//boot
2018-03-27 15:10:42.050 | + '[' -n 'ostree/fedora-atomic-*/vmlinuz*' -a -n 'ostree/fedora-atomic-*/initramfs-*' ']'
2018-03-27 15:10:42.051 | +++ eval ls -1rv '//boot/ostree/fedora-atomic-*/vmlinuz*'
2018-03-27 15:10:42.051 | ++++ ls -1rv '//boot/ostree/fedora-atomic-*/vmlinuz*'
2018-03-27 15:10:42.051 | +++ head -1
2018-03-27 15:10:42.052 | ls: cannot access '//boot/ostree/fedora-atomic-*/vmlinuz*': No such file or directory
2018-03-27 15:10:42.053 | ++ basename
2018-03-27 15:10:42.053 | basename: missing operand
2018-03-27 15:10:42.053 | Try 'basename --help' for more information.
2018-03-27 15:10:42.054 | + KERNEL=
2018-03-27 15:10:42.059 | Traceback (most recent call last):
2018-03-27 15:10:42.059 |   File "/tmp/in_target.d/finalise.d/50-dracut-regenerate", line 67, in <module>
2018-03-27 15:10:42.059 |     main()
2018-03-27 15:10:42.059 |   File "/tmp/in_target.d/finalise.d/50-dracut-regenerate", line 52, in main
2018-03-27 15:10:42.059 |     raise e
2018-03-27 15:10:42.059 | subprocess.CalledProcessError: Command '['select-boot-kernel-initrd']' returned non-zero exit status 1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.