public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] How do I get /dev entries onto a livecd image?
@ 2008-09-22  9:37 Amit Dor-Shifer
  2008-09-22 12:12 ` Andrew Gaffney
  0 siblings, 1 reply; 6+ messages in thread
From: Amit Dor-Shifer @ 2008-09-22  9:37 UTC (permalink / raw
  To: gentoo-catalyst

Hello again.

I'm trying to get /dev/watchdog onto my CD. I'm using a squashfs fstype.

The device is properly created by the kernel build stage, yet it doesn't 
end-up in the image. Seems the  'unbind' action unmounts /dev from the 
source before calling mksquashfs.

Any ideas how to circumvent this problem?

Amit





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-catalyst] How do I get /dev entries onto a livecd image?
  2008-09-22  9:37 [gentoo-catalyst] How do I get /dev entries onto a livecd image? Amit Dor-Shifer
@ 2008-09-22 12:12 ` Andrew Gaffney
  2008-09-22 12:59   ` Amit Dor-Shifer
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Gaffney @ 2008-09-22 12:12 UTC (permalink / raw
  To: gentoo-catalyst

Amit Dor-Shifer wrote:
> Hello again.
> 
> I'm trying to get /dev/watchdog onto my CD. I'm using a squashfs fstype.
> 
> The device is properly created by the kernel build stage, yet it doesn't 
> end-up in the image. Seems the  'unbind' action unmounts /dev from the 
> source before calling mksquashfs.
> 
> Any ideas how to circumvent this problem?

/dev is managed by udev on the LiveCD, the same as a normal install. You'll have 
to create a udev rule file that creates this device and add it to the LiveCD 
with livecd/overlay.

-- 
Andrew Gaffney                                 http://dev.gentoo.org/~agaffney/
Gentoo Linux Developer            Catalyst/Genkernel + Release Engineering Lead



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-catalyst] How do I get /dev entries onto a livecd image?
  2008-09-22 12:12 ` Andrew Gaffney
@ 2008-09-22 12:59   ` Amit Dor-Shifer
  2008-09-22 14:43     ` Andrew Gaffney
  0 siblings, 1 reply; 6+ messages in thread
From: Amit Dor-Shifer @ 2008-09-22 12:59 UTC (permalink / raw
  To: gentoo-catalyst

Sorry. Wrong there. I meant I want /dev/watchdog inside the loop, in the 
squashfs image.
Does that change the answer?
Amit

Andrew Gaffney wrote:
> Amit Dor-Shifer wrote:
>> Hello again.
>>
>> I'm trying to get /dev/watchdog onto my CD. I'm using a squashfs fstype.
>>
>> The device is properly created by the kernel build stage, yet it 
>> doesn't end-up in the image. Seems the  'unbind' action unmounts /dev 
>> from the source before calling mksquashfs.
>>
>> Any ideas how to circumvent this problem?
>
> /dev is managed by udev on the LiveCD, the same as a normal install. 
> You'll have to create a udev rule file that creates this device and 
> add it to the LiveCD with livecd/overlay.
>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-catalyst] How do I get /dev entries onto a livecd image?
  2008-09-22 12:59   ` Amit Dor-Shifer
@ 2008-09-22 14:43     ` Andrew Gaffney
  2008-09-24  4:34       ` Chris Gianelloni
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Gaffney @ 2008-09-22 14:43 UTC (permalink / raw
  To: gentoo-catalyst

Amit Dor-Shifer wrote:
> Sorry. Wrong there. I meant I want /dev/watchdog inside the loop, in the 
> squashfs image.
> Does that change the answer?

No, it doesn't. The only reason it works on your normal install is because a 
tmpfs is already mounted on /dev and udev is managing it. In the case of a 
LiveCD, it doesn't matter what you put in /dev in the squashfs, since it gets 
"hidden" when the tmpfs is mounted over it at boottime.

-- 
Andrew Gaffney                                 http://dev.gentoo.org/~agaffney/
Gentoo Linux Developer            Catalyst/Genkernel + Release Engineering Lead



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-catalyst] How do I get /dev entries onto a livecd image?
  2008-09-22 14:43     ` Andrew Gaffney
@ 2008-09-24  4:34       ` Chris Gianelloni
  2008-09-24  6:37         ` Amit Dor-Shifer
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Gianelloni @ 2008-09-24  4:34 UTC (permalink / raw
  To: gentoo-catalyst

[-- Attachment #1: Type: text/plain, Size: 658 bytes --]

On Mon, 2008-09-22 at 09:43 -0500, Andrew Gaffney wrote:
> Amit Dor-Shifer wrote:
> > Sorry. Wrong there. I meant I want /dev/watchdog inside the loop, in the 
> > squashfs image.
> > Does that change the answer?
> 
> No, it doesn't. The only reason it works on your normal install is because a 
> tmpfs is already mounted on /dev and udev is managing it. In the case of a 
> LiveCD, it doesn't matter what you put in /dev in the squashfs, since it gets 
> "hidden" when the tmpfs is mounted over it at boottime.

If you want the udev rule inside the squashfs, use livecd/root_overlay,
instead.

-- 
Chris Gianelloni
Developer
wolf31o2.org

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-catalyst] How do I get /dev entries onto a livecd image?
  2008-09-24  4:34       ` Chris Gianelloni
@ 2008-09-24  6:37         ` Amit Dor-Shifer
  0 siblings, 0 replies; 6+ messages in thread
From: Amit Dor-Shifer @ 2008-09-24  6:37 UTC (permalink / raw
  To: gentoo-catalyst

Resolved.
Was unrelated to catalyst/udev. My kernel config was missing enabling of 
the hardware watchdog  timer specific to my machine. I didn't suspect it 
because when I looked into catalyst's tmp/ folder I saw the device entry 
exists.
Once the kernel was set-up correctly, there was no need for any further 
udev configuration.
Thanks!
Amit

Chris Gianelloni wrote:
> On Mon, 2008-09-22 at 09:43 -0500, Andrew Gaffney wrote:
>   
>> Amit Dor-Shifer wrote:
>>     
>>> Sorry. Wrong there. I meant I want /dev/watchdog inside the loop, in the 
>>> squashfs image.
>>> Does that change the answer?
>>>       
>> No, it doesn't. The only reason it works on your normal install is because a 
>> tmpfs is already mounted on /dev and udev is managing it. In the case of a 
>> LiveCD, it doesn't matter what you put in /dev in the squashfs, since it gets 
>> "hidden" when the tmpfs is mounted over it at boottime.
>>     
>
> If you want the udev rule inside the squashfs, use livecd/root_overlay,
> instead.
>
>   



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-09-24  6:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-22  9:37 [gentoo-catalyst] How do I get /dev entries onto a livecd image? Amit Dor-Shifer
2008-09-22 12:12 ` Andrew Gaffney
2008-09-22 12:59   ` Amit Dor-Shifer
2008-09-22 14:43     ` Andrew Gaffney
2008-09-24  4:34       ` Chris Gianelloni
2008-09-24  6:37         ` Amit Dor-Shifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox