ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] обновление udev?
Date: Thu, 31 Aug 2006 21:40:14 +0400
Message-ID: <20060831174014.GA10677@procyon.home> (raw)
In-Reply-To: <44F70529.4010203@voliacable.com>

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

On Thu, Aug 31, 2006 at 06:50:01PM +0300, Yuri Horoshkov wrote:
[...]
> Из десяти загрузок один раз удалось добраться до Х-ов, но они оказались
> без шрифтов.
> При этой загрузке была пауза на "Populating /dev",  но имелось сообщение:
> 
> nvidia: failed to unlink /etc/X11/lib_nvidia/libnvidia-cfg.so.1:  No
> such file or directory

Это что-то другое... возможно, X всё-таки разломали, и придётся пока
править всё в текстовой консоли.

> 
> > Что выдаёт "rpm --verify udev" - ничего в конфигурации не
> > модифицировалось?  
> В конфигурации ничего не менялось, а вот "rpm --verify udev" не смог
> сделать, т.к. загрузиться не могу.

Можно нажать 'i' при загрузке, либо дописать confirm к параметрам ядра
в загрузчике - в этом случае перед запуском каждого сервиса будет
запрашиваться подверждение, что позволит пропустить запуск udevd.

Далее можно попробовать изменить файл /etc/init.d/udevd следующим
образом:

--- /etc/init.d/udevd.rpmorig	2006-08-28 18:23:25 +0400
+++ /etc/init.d/udevd	2006-08-31 21:22:06 +0400
@@ -177,7 +177,7 @@ prepare_filesystem()
 		# We want to start udevd ourselves if it isn't already running.
 		# This lets udevd run at a sane nice level...
 		if [ -z "$RUN_FROM_SYSINIT" ]; then
-			start_daemon --lockfile "$LOCKFILE" --expect-user root --pidfile "$PIDFILE" --make-pidfile -- $udevd
+			start_daemon --lockfile "$LOCKFILE" --expect-user root -- $udevd --daemon
 		else
 			start_daemon --expect-user root -- $udevd
 		fi
@@ -235,7 +235,7 @@ stop()
 	local do_fscleanup
 	do_fscleanup=
 	[ -f "$LOCKFILE" ] && do_fscleanup=1
-	stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" $udevd
+	stop_daemon --pidfile none --lockfile "$LOCKFILE" $udevd
 	RETVAL=$?
 	echo "/sbin/hotplug" >/proc/sys/kernel/hotplug
 	if [ -n "$do_fscleanup" ]; then
@@ -261,13 +261,13 @@ case "$1" in
 		stop
 		;;
 	status)
-		status --pidfile "$PIDFILE" -- $prog
+		status --pidfile none -- $prog
 		exit $?
 		;;
 	condrestart)
 		;;
 	condstop)
-		msg=`status --pidfile "$PIDFILE" -- $prog`
+		msg=`status --pidfile none -- $prog`
 		RETVAL=$?
 		if [ $RETVAL -eq 0 ]; then
 			stop

В принципе для загрузки должно хватить только модификации первого
вызова start_daemon (убрать опции --pidfile "$PIDFILE" --make-pidfile,
добавить в конец опцию --daemon); без остальных изменений не будет
правильно работать останов udevd при завершении работы системы, а
также service udevd status.

Если и в таком варианте udevd не будет запускаться нормально - даже не
знаю, что делать дальше.  Вообще --pidfile none - это плохо, но для
более правильной работы изменением скрипта запуска не обойтись - нужно
патчить сам udevd.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-08-31 17:40 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-31  9:37 Yuri Horoshkov
2006-08-31  9:42 ` Anton Farygin
2006-08-31 10:04   ` Yuri Horoshkov
2006-08-31 10:52 ` Sergey Vlasov
2006-08-31 13:37   ` Yuri Horoshkov
2006-08-31 14:24     ` Sergey Vlasov
2006-08-31 15:50       ` Yuri Horoshkov
2006-08-31 17:40         ` Sergey Vlasov [this message]
2006-08-31 19:21           ` Alexey Gladkov
2006-08-31 19:38             ` Sergey Vlasov
2006-08-31 20:04               ` Yuri Horoshkov
2006-09-01  6:43                 ` Sergey Vlasov
2006-09-01  6:58                   ` Yuri Horoshkov
2006-09-01  7:06                     ` Sergey Vlasov
2006-08-31 20:43               ` Alexey Gladkov
2006-09-01  6:37                 ` Sergey Vlasov
2006-09-01  6:02               ` Yuri Horoshkov
2006-08-31 13:53   ` Andrii Dobrovol`s`kii
2006-08-31 14:15     ` Igor Zubkov
2006-08-31 16:03   ` Alexey Gladkov
2006-08-31 18:28 ` Dmitriy Khanzhin
2006-08-31 18:43   ` Dmitry V. Levin
2006-08-31 18:56     ` Dmitriy Khanzhin
2006-08-31 19:16     ` Sergey Vlasov
2006-09-01  7:36     ` [sisyphus] syslog и сервисы в chroot (was: Re: обновление udev?) Andrei Bulava
2006-09-01  9:10       ` Sergey Vlasov
2006-09-01 10:15         ` [sisyphus] syslog и сервисы в chroot Andrei Bulava
2006-09-05 12:59   ` [sisyphus] обновление udev? Michael Shigorin
2006-08-31 19:09 ` Sergey Vlasov
2006-08-31 19:30   ` Yuri Horoshkov
2006-09-01 21:07   ` Artem Zolochevskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060831174014.GA10677@procyon.home \
    --to=vsu@altlinux.ru \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git