Bug 1195462 - tarpayload - anaconda doesn't extract extended attributes
Summary: tarpayload - anaconda doesn't extract extended attributes
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1196021
TreeView+ depends on / blocked
 
Reported: 2015-02-23 21:32 UTC by Arun S A G
Modified: 2015-11-16 19:04 UTC (History)
7 users (show)

Fixed In Version: anaconda-23.1-1
Doc Type: Bug Fix
Doc Text:
The "liveimg" command now properly ensures that file attributes for SELinux are preserved.
Clone Of:
: 1196021 (view as bug list)
Environment:
Last Closed: 2015-10-21 16:13:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch to fix this (761 bytes, patch)
2015-02-25 01:28 UTC, Arun S A G
no flags Details | Diff
Patch to fix this (773 bytes, patch)
2015-02-25 01:29 UTC, Arun S A G
no flags Details | Diff
Patch to fix tar extract (690 bytes, patch)
2015-02-25 20:20 UTC, Arun S A G
no flags Details | Diff
Patch (774 bytes, patch)
2015-02-26 00:55 UTC, Arun S A G
no flags Details | Diff

Description Arun S A G 2015-02-23 21:32:37 UTC
Description of problem:
In order for anaconda to extract tarpayload  with extended filesystem attributes, it must use --xattrs-include='*' as an argument.  Please use this argument so that tar preserves things like capabilities on files.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Arun S A G 2015-02-25 01:28:42 UTC
Created attachment 994973 [details]
Patch to fix this

Comment 2 Arun S A G 2015-02-25 01:29:47 UTC
Created attachment 994974 [details]
Patch to fix this

Comment 3 Arun S A G 2015-02-25 05:27:33 UTC
For some reason i couldn't get this working even after applying this patch to anaconda. 

I can however extract files using tar manually on a shell with extended attributes fine. But in the installation environment it just doesn't seem to work.

During installation, this is how mount options look like

[root@lab2 b]# tune2fs -l /dev/mapper/sys-root 
tune2fs 1.42.9 (28-Dec-2013)
Filesystem volume name:   <none>
Last mounted on:          /
Filesystem UUID:          cbea6887-b3dd-4fb0-b745-eddbbbd13605
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash 
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              655360
Block count:              2621440
Reserved block count:     131072
Free blocks:              2355295
Free inodes:              633444The stage2 i built using anaconda (RHEL7) is available 
First block:              0
Block size:               4096
Fragment size:            4096
Group descriptor size:    64
Reserved GDT blocks:      1024
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Wed Feb 25 04:29:07 2015
Last mount time:          Wed Feb 25 04:41:56 2015
Last write time:          Wed Feb 25 04:29:17 2015
Mount count:              2
Maximum mount count:      -1
Last checked:             Wed Feb 25 04:29:07 2015
Check interval:           0 (<none>)
Lifetime writes:          150 MB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      87fb6241-9916-4471-b44c-613d2c135d52
Journal backup:           inode blocks



The stage2 i built using patched anaconda  (against 19.31.111 beta) (RHEL7) is  available at https://sagarun.fedorapeople.org/misc/stage2-minimal.tar.bz2

Comment 4 Arun S A G 2015-02-25 20:20:49 UTC
Created attachment 995331 [details]
Patch to fix tar extract

Comment 5 Arun S A G 2015-02-26 00:55:52 UTC
Created attachment 995405 [details]
Patch

Comment 6 Jan Kurik 2015-07-15 14:30:17 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23


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