From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Hubbs Date: Tue, 08 Nov 2011 23:37:12 +0000 Subject: Re: /var on a separate partition Message-Id: <20111108233712.GB19188@linux1> MIME-Version: 1 Content-Type: multipart/mixed; boundary="ADZbWkCsHQ7r3kzd" List-Id: References: <20111108183853.GA18064@linux1> In-Reply-To: <20111108183853.GA18064@linux1> To: linux-hotplug@vger.kernel.org --ADZbWkCsHQ7r3kzd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 08, 2011 at 11:46:10PM +0100, Kay Sievers wrote: > On Tue, Nov 8, 2011 at 23:39, William Hubbs wrote: > > On Tue, Nov 08, 2011 at 08:35:53PM +0100, Kay Sievers wrote: > >> On Tue, Nov 8, 2011 at 19:38, William Hubbs wrot= e: > >> > I know that having /usr on a separate file system with the latest ud= ev > >> > 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? >=20 > 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. >=20 > But the ACTION=3D=3D"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. ACTION=3D=3D"add", SUBSYSTEM=3D=3D"sound", KERNEL=3D=3D"controlC*", KERNELS= =3D=3D"card*", \ RUN+=3D"/usr/sbin/alsactl restore $attr{number}" The problem is the run+=3D portion. "alsactl restore" reads state information from /var/lib/alsa by default, so it will fail if /var is not mounted. William --ADZbWkCsHQ7r3kzd Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEARECAAYFAk65vSgACgkQblQW9DDEZTjNHgCfad4no+R3BgDNJMTfEs96U973 6e0AmgKPsNhKyjVw2vanTX1fl77ETFkw =HLXR -----END PGP SIGNATURE----- --ADZbWkCsHQ7r3kzd--