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 16:16:42 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On:    
Bug Blocks: 235704    

Description Jeremy Katz 2007-09-19 13:28:15 EDT
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 05:00:39 EDT
ok, but please do not create 128 loop devices :)
Comment 2 Harald Hoyer 2007-09-20 05:17:34 EDT
oh, and you can always place your rules in 49-myloop.rules
Comment 3 Jeremy Katz 2007-09-20 07:43:24 EDT
(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.