Bug 296621 - loop with OPTIONS=last_rule breaks symlink creation for live images
Summary: loop with OPTIONS=last_rule breaks symlink creation for live images
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: udev
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F8Target
TreeView+ depends on / blocked
 
Reported: 2007-09-19 17:28 UTC by Jeremy Katz
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2007-10-18 20:16:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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