On Tue, Apr 3, 2012 at 12:43 AM, 张春江 <zhangchunjiangrj@...> wrote:
> Does anybody in the list have used plymouth.
I do, but I also use systemd. And GRUB2.
> I installed and configured plymouth as http://dev.gentoo.org/~aidecoe/doc/en/plymouth.xml told.
> my grub.conf is
> title Gentoo Linux
> root (hd0,13)
> kernel /boot/kernel-3.2.1-gentoo-r2 root=/dev/sda10 video=radeon:1366x768 quiet splash
> initrd /boot/initramfs-3.2.1-gentoo-r2.img
> While I rebooting my machine, it shows "[plymouth] could not create /run/plymouth" and there is no splash.
> Then I created /run/plymouth directory in the initrd file system manually, but it seems that this doesn't change anything.
> And then I created /run/plymouth in my root file system, while this time system shows
> "plymouthd could not start boot splash: No such file or directory".
The /run directory should be created when installing dbus; it's a tmpfs:
# mount | grep /run
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
And then it's bind-mounted in /var/run. At least that's how it happens
with systemd, and that's the expected behaviour. Did you created your
initramfs with dracut?
> I checked my Ubuntu virtual machine, which plymouth works well, there is no /run/plymouth directory in initram file system or real root file system.
My initramfs doesn't have a /run directory either:
# mkdir kk
# cd kk
# zcat /boot/initrd-3.2.12 | cpio -i
bin dev etc init lib lib64 proc root run sbin shutdown sys
sysroot tmp usr var
However, inside /var, there is a symbolic link to /run:
# ls -l var
lrwxrwxrwx 1 root root 9 Apr 3 12:15 lock -> /run/lock
drwxr-xr-x 2 root root 4096 Apr 3 12:15 log
lrwxrwxrwx 1 root root 4 Apr 3 12:15 run -> /run
So the problem it's not the existance (or not) of the run directory, I
believe; it's the fact that it's mounted really early in the boot
process as a tmpfs. So, did you use dracut to generate your initramfs,
or did you use genkernel? Or you did it by hand?
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México