[Bug 933664] New: kiwi cannot create btrfs subvolumes that include a nested subdirectory in "volume name" within systemdisk
http://bugzilla.suse.com/show_bug.cgi?id=933664 Bug ID: 933664 Summary: kiwi cannot create btrfs subvolumes that include a nested subdirectory in "volume name" within systemdisk Classification: openSUSE Product: openSUSE.org Version: unspecified Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService Assignee: bnc-team-screening@forge.provo.novell.com Reporter: rdannert@suse.com QA Contact: adrian@suse.com Found By: --- Blocker: --- Created attachment 636776 --> http://bugzilla.suse.com/attachment.cgi?id=636776&action=edit OBS buildlog Volume path var/lib/pgsql does not exist in unpacked tree KIWI exited with error(s) I am trying to build an appliance, that includes default btrfs subvolumes This is the relevant part of the kiwi config file(attached) <systemdisk name="testing"> <volume name="tmp"/> <volume name="opt"/> <volume name="srv"/> <volume name="var/crash"/> <volume name="var/spool"/> <volume name="boot/grub2/i386-pc"/> <volume name="boot/grub2/x86_64-efi"/> <volume name="usr/local"/> <volume name="var/lib/mailman"/> <volume name="var/lib/named"/> <volume name="var/lib/pgsql"/> <volume name="var/log"/> <volume name="var/opt"/> <volume name="var/tmp"/> </systemdisk> the build fails with the following error message: [ 208s] Jun-04 14:55:59 <3> : Volume path var/lib/named does not exist in unpacked treeJun-04 14:55:59 <3> : KIWI exited with error(s) [ 208s] see attached buildlog and kiwi config this is the OBS project/package: home:rdannert:JeOS-Test VM-bnc The build is already using kiwi-7.02.52-1.1 from Virtualization:Appliances -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=933664
Ralf Dannert
http://bugzilla.suse.com/show_bug.cgi?id=933664
Ralf Dannert
http://bugzilla.suse.com/show_bug.cgi?id=933664
Ralf Dannert
http://bugzilla.suse.com/show_bug.cgi?id=933664
Chenzi Cao
http://bugzilla.suse.com/show_bug.cgi?id=933664
Marcus Schaefer
http://bugzilla.suse.com/show_bug.cgi?id=933664
--- Comment #3 from Ralf Dannert
well /var/lib/named seems not to belong to any package. Thus this directory is not created while the packages are installed. You need to create that one yourself in config.sh or open a bug against named if it is one
mkdir -p var/lib/named
/var/lib/named is not a normal directory but a btrfs subvolume if the directory exists, it is not possible to create a subvolume anymore: sles12:/ # mkdir -p /var/lib/named2 sles12:/ # btrfs subvolume create /var/lib/named2 ERROR: '/var/lib/named2' exists but the btrfs subvolume is necessary to exclude when doing snapshots this applies to all the other "volume path" in <systemdisk> -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=933664
Ralf Dannert
http://bugzilla.suse.com/show_bug.cgi?id=933664
Marcus Schaefer
/var/lib/named is not a normal directory but a btrfs subvolume if the directory exists, it is not possible to create a subvolume anymore:
Sorry but this is not true. /srv, /usr, and all other subvolumes you have added also exists. It's like a mount point you have to provide a directory. I don't know what you have tested here, but simply adding: mkdir -p /var/lib/named to kiwi's config.sh fixed this. I have built an image with this setup a second ago. Here is the log excerpt: ls -ld /tmp/mytest/build/image-root/var/lib/named/ drwxr-xr-x 2 root root 40 Jun 5 16:03 /tmp/mytest/build/image-root/var/lib/named/ Jun-05 16:05:39 <1> : EXEC [btrfs subvolume create /tmp/kiwiloop.xIYOWy/@/var/lib/named 2>&1] /var/lib is not a subvolume and I don't have trouble creating another one below that path anyway this is not kiwi related anymore. I'm going to submit a new kiwi version in a minute. Please retry building the image with it and make sure you have added an mkdir to config.sh to all directories which are not created by default it can't hurt if you add them even if they are created by some package If you still see a problem please open a new report Thanks -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com