ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: [sisyphus] Re: 2.4.26-std-up-alt4
Date: Wed, 23 Jun 2004 13:29:45 +0400
Message-ID: <20040623092945.GQ1926@solemn.turbinal.org> (raw)
In-Reply-To: <200406230014.26242.iadzhubey@rics.bwh.harvard.edu>

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

On Wed, Jun 23, 2004 at 12:14:26AM -0400, Ivan Adzhubey wrote:
> > # /sbin/installkernel 2.4.26-alt4
> > ?
> > # /usr/share/loader/grub 2.4.26-alt4
> > ?
> 
> Like what??

Первая команда вызывается из %post скрипта ядрышка, вторая -- из первой,
должна добавлять собственно запись в menu.lst.  Добавляет?

> Кажется поймал. У меня раньше стояло загрузчиком лило, остался /etc/lilo.conf. 
> Так вот туда он новое ядро и прописал, вместо /boot/grub/menu.lst. Хоть бы в 
> оба прописывал что-ли. Что интересно, раньше (пару версий назад и до того) 
> installkernel вполне изящно сам определял, что именно грузит систему и на 
> моей памяти ни разу не ошибся. Он даже писал при этом что-то типа guessing 
> boot loader... grub и т.п. Больше не пишет.

А /boot/grub/device.map у вас есть?
Посмотрите в /sbin/installkernel, там логика очень простая...

# check perl
if [ ! -x "$PERL" ]; then
	echo "$0: warning: $PERL not available; supposed to run manually..."
	PERL="echo $PERL"
fi

# modify lilo config
if [ -f "$LILO_CONF" -a -x "$SHARFILE/lilo" ]; then
	if [ -z "$REMOVE" -a -z "$MEMTEST" -a -n "$OLD_VERSION" ]; then
		"$PERL" "$SHARFILE/lilo" "$OLD_VERSION"
	fi
	"$PERL" "$SHARFILE/lilo" $MEMTEST $REMOVE "$VERSION"
fi

# modify grub config
if [ -f "$GRUB_MENU_LST" -a -f "$GRUB_DEVICE_MAP" -a -x "$SHARFILE/grub" ]; then
	if [ -z "$REMOVE" -a -z "$MEMTEST" -a -n "$OLD_VERSION" ]; then
		"$PERL" "$SHARFILE/grub" "$OLD_VERSION"
	fi
	"$PERL" "$SHARFILE/grub" $MEMTEST $REMOVE "$VERSION"
fi

# launch lilo
if [ -z "$LOADER" -a -x "$DETECTLOADER" ]; then
	LOADER=`$PERL $DETECTLOADER -q`
fi
if [ "$LOADER" = LILO -a -z "$NOLAUNCH" ]; then
	"$LILO" >/dev/null ||:
fi

exit 0

Т.е. модифицируется сразу два конфига, если они существуют.
А вот запускать lilo или нет, это уже зависит от detectloader.

> -- 
> Иван

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

  reply	other threads:[~2004-06-23  9:29 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-22  6:27 [sisyphus] 2.4.26-std-up-alt4 Sergey S. Skulachenko
2004-06-22  7:14 ` Peter Evdokimov
2004-06-22  7:27   ` Ildar Mulyukov
2004-06-22  7:52     ` Peter Evdokimov
2004-06-22 10:12 ` Dmitry V. Levin
2004-06-22 10:16   ` Denis Ovsienko
2004-06-22 10:22     ` Dmitry V. Levin
2004-06-22 11:32       ` Alex Yustasov
2004-06-27 17:18       ` [sisyphus] 2.4.26-std-up-alt4 Michael Shigorin
2004-06-22 10:22     ` [sisyphus] 2.4.26-std-up-alt4 Led
2004-06-22 10:29       ` Denis Ovsienko
2004-06-22 10:34         ` Led
2004-06-22 11:34   ` [sisyphus] 2.4.26-std-up-alt4 Alexey Tourbin
2004-06-22 12:31     ` iLya Bryzgalow
2004-06-22 18:36       ` Ivan Adzhubey
2004-06-22 20:10         ` Alexey Tourbin
2004-06-23  4:14           ` Ivan Adzhubey
2004-06-23  9:29             ` Alexey Tourbin [this message]
2004-06-22 19:47     ` Sergey S. Skulachenko
2004-06-22 20:33       ` [sisyphus] Re: философия bootloader-utils Alexey Tourbin
2004-06-23  4:30         ` iLya Bryzgalow
2004-06-23  9:37           ` Alexey Tourbin
2004-06-23  7:18         ` Denis G. Samsonenko
2004-06-23  7:26           ` Slava Dubrovskiy
2004-06-23  7:50           ` Sviataslau Svirydau
2004-06-23  8:30             ` Denis G. Samsonenko
2004-06-23  8:37               ` Ildar Mulyukov
2004-06-23  9:48                 ` Denis G. Samsonenko
2004-06-27 17:26               ` Michael Shigorin
2004-06-23  8:55           ` Led
2004-06-23  9:43             ` Genix
2004-06-23  9:54             ` Denis G. Samsonenko
2004-06-27 17:27             ` Michael Shigorin
2004-06-23 10:03           ` Alexey Tourbin
2004-06-23 10:17             ` Sergey Vlasov
2004-06-23 12:06               ` Dmitry V. Levin
2004-06-24  7:16                 ` Denis G. Samsonenko
2004-06-24 11:03                   ` Dmitry V. Levin
2004-06-23 10:38             ` Denis G. Samsonenko
2004-06-27 17:23           ` Michael Shigorin
2004-06-23 13:29         ` Andriy Dobrovol's'kii
2004-06-23 17:25           ` Alexey Tourbin
2004-06-23 18:57             ` [sisyphus] Re: bootloader-utils and default records Alexey Tourbin
2004-06-23 23:26               ` Ivan Adzhubey
2004-06-23 23:45                 ` Alexey Tourbin
2004-06-24  0:09                   ` Ivan Adzhubey
2004-06-24  0:14                     ` Ivan Adzhubey
2004-06-24  0:22                       ` Dmitry V. Levin
2004-06-24  1:40                         ` Ivan Adzhubey
2004-06-24  8:32                         ` Sergey Vlasov
2004-06-24  0:41                     ` Alexey Tourbin
2004-06-24  2:14                       ` Ivan Adzhubey
2004-06-24  2:50                         ` Alexey Tourbin
2004-06-24  4:28                           ` Ivan Adzhubey
2004-06-26 20:59                             ` Alexey Tourbin
2004-06-27 17:35                             ` Michael Shigorin
2004-06-27 17:33                           ` Michael Shigorin
2004-06-24  6:58                         ` Denis Ovsienko
2004-06-24  4:20               ` Mike Lykov
2004-06-24  7:14             ` [sisyphus] Re: философия bootloader-utils Andriy Dobrovol's'kii
2004-06-27 17:28           ` Michael Shigorin

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=20040623092945.GQ1926@solemn.turbinal.org \
    --to=at@altlinux.ru \
    --cc=sisyphus@altlinux.ru \
    /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