Bug 296621

Summary: loop with OPTIONS=last_rule breaks symlink creation for live images
Product: [Fedora] Fedora Reporter: Jeremy Katz <katzj>
Component: udevAssignee: Harald Hoyer <harald>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-10-18 20:16:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 235704    

Description Jeremy Katz 2007-09-19 17:28:15 UTC
Live images want to be able to create some symlinks to loop devices that are
used for the system so that they can later be identified.  We add the udev rules
to do so in the initramfs when we're setting up the loop devices.  But since the
loop config has OPTIONS=last_rule, the symlinks never get created

Comment 1 Harald Hoyer 2007-09-20 09:00:39 UTC
ok, but please do not create 128 loop devices :)

Comment 2 Harald Hoyer 2007-09-20 09:17:34 UTC
oh, and you can always place your rules in 49-myloop.rules

Comment 3 Jeremy Katz 2007-09-20 11:43:24 UTC
(In reply to comment #1)
> ok, but please do not create 128 loop devices :)

We use a number of them during live CD boot...  although I guess since we only
have 8 by default, n+8 isn't that bad.  So probably would just choose 16.  

(In reply to comment #2)
> oh, and you can always place your rules in 49-myloop.rules

Nope -- have to append to an existing file so that SELinux doesn't get in the
way.  No policy is loaded in the initramfs so files get created as unlabeled_t;
reading files labeled unlabeled_t is (rightfully) denied.  We can't set the
context in the initramfs because the kernel won't let you set security xattrs
that it doesn't know about.