Re: /var on a separate partition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 9, 2011 at 00:37, William Hubbs <w.d.hubbs@xxxxxxxxx> wrote:
> On Tue, Nov 08, 2011 at 11:46:10PM +0100, Kay Sievers wrote:
>> On Tue, Nov 8, 2011 at 23:39, William Hubbs <w.d.hubbs@xxxxxxxxx> wrote:
>> > On Tue, Nov 08, 2011 at 08:35:53PM +0100, Kay Sievers wrote:
>> >> On Tue, Nov 8, 2011 at 19:38, William Hubbs <w.d.hubbs@xxxxxxxxx> wrote:
>> >> > I know that having /usr on a separate file system with the latest udev
>> >> > doesn't work without using an initramfs.
>> >> >
>> >> > Are there any other file systems that should be pre-mounted by the
>> >> > initramfs, such as /var? It looks like /var has to be pre-mounted if you
>> >> > have alsa installed, but I want to confirm whether folkson this list
>> >> > know this.
>> >>
>> >> There is no need for that. Systemd can bring up the box without /var,
>> >> and sort the services which need that after /var is mounted.
>> >>
>> >> Alsa has its own systemd service which initializes hardware at that
>> >> point, in case the coldplug run did not do it already from udev.
>> >
>> > In that case, shouldn't we have the alsa-utils folks drop
>> > /lib/udev/rules.d/90-alsa-restore.rules from their package?
>>
>> Udev still takes care for hardware you connect later. Udev does the
>> hotplug path, the systemd service does the initial init during bootup.
>> Both are needed.
>>
>> But the ACTION=="remove" rule in that file can surely be killed, not
>> sure who expected saving the state of a device that is already removed
>> to work. :)
>
> I'm not sure we are talking about the same file, so I will include the
> one I have for reference, this is from alsa-utils-1.0.24.2.

We do. The ACTION=="remove" in there makes no sense.

> ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS=="card*", \
>        RUN+="/usr/sbin/alsactl restore $attr{number}"
>
>                The problem is the run+= portion. "alsactl restore" reads state
>                information from /var/lib/alsa by default, so it will fail if
>                /var is not mounted.

That does not matter. The rule is meant to run and  will work fine in
hotplug cases. During bootup it can gracefully fail without causing
any problems, the systemd service, started later, will take care that
/var is there, when the formerly failed device inits, are applied.

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux