Bug 1466853 - running mkosi without any configuration fails
Summary: running mkosi without any configuration fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mkosi
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Zbigniew Jędrzejewski-Szmek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-30 14:45 UTC by Stefan Assmann
Modified: 2017-11-18 15:01 UTC (History)
1 user (show)

Fixed In Version: mkosi-2-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-18 15:01:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Stefan Assmann 2017-06-30 14:45:04 UTC
Description of problem:
root@w541:~ > mkosi
DISTRIBUTION:
          Distribution: fedora
               Release: 25

OUTPUT:
         Output Format: raw_gpt
                Output: /root/image.raw
       Output Checksum: n/a
      Output Signature: n/a
Output nspawn Settings: n/a
        XZ Compression: no

PACKAGES:
              Packages: none
    With Documentation: no
         Package Cache: none
           Extra Trees: none
          Build Script: none
         Build Sources: /root
        Build Packages: none
       nspawn Settings: none

PARTITIONS:
              Bootable: no
        Root Partition: 1.0G
        Swap Partition: (disabled)
                   ESP: (disabled)
       /home Partition: (disabled)
        /srv Partition: (disabled)

VALIDATION:
              Checksum: no
                  Sign: no
               GPG Key: default
              Password: default
‣ Detaching namespace...
‣ Detaching namespace complete.
‣ Setting up package cache...
‣ Setting up package cache /root/.mkosi-h1f7xxxq completed.
‣ Setting up temporary workspace.
‣ Temporary workspace in /var/tmp/mkosi-9kkf8lxe is now set up.
‣ Creating partition table...
Traceback (most recent call last):
  File "/usr/bin/mkosi", line 1657, in <module>
    main()
  File "/usr/bin/mkosi", line 1653, in main
    build_stuff(args)
  File "/usr/bin/mkosi", line 1613, in build_stuff
    raw, tar = build_image(args, workspace, run_build_script=False)
  File "/usr/bin/mkosi", line 1542, in build_image
    raw = create_image(args, workspace.name)
  File "/usr/bin/mkosi", line 124, in create_image
    subprocess.run(["chattr", "+C", f.name], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, check=True)
  File "/usr/lib64/python3.5/subprocess.py", line 398, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['chattr', '+C', '/root/.mkosi-m53lhmz3']' returned non-zero exit status 1

Version-Release number of selected component (if applicable):
mkosi-1-1.fc25.noarch

How reproducible:
always

Steps to Reproduce:
1. run mkosi without any config
2.
3.

Actual results:
python error

Expected results:
create image file

Comment 1 Fedora End Of Life 2017-11-16 19:23:51 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 2 Zbigniew Jędrzejewski-Szmek 2017-11-18 15:01:31 UTC
This was fixed a while back, but I forgot to close this bug (upstream commit v1-4-g398d203a3b).


Note You need to log in before you can comment on or make changes to this bug.