* [sisyphus] Маленькое предложение по обновлению ядра
@ 2010-12-15 8:27 Anton Chernyshov
2010-12-15 8:42 ` Vitaly Kuznetsov
2010-12-15 12:25 ` Michael Shigorin
0 siblings, 2 replies; 6+ messages in thread
From: Anton Chernyshov @ 2010-12-15 8:27 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
Тут после недавней проблемы с bootloader-utils появилась такая
небольшая идейка. Сейчас в /boot при обновлении ядра генерятся
симлинки вида vmlinuz и initrd , которые указывают на самое новое
ядро. Может стоит немного дописать скрипты, которые создают эти
ссылки, чтоб еще были симлинки vmlinuz.old и initrd.old, указывающие
на старое ядро и его initrd?
--
С уважением,
Чернышов Антон
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] Маленькое предложение по обновлению ядра
2010-12-15 8:27 [sisyphus] Маленькое предложение по обновлению ядра Anton Chernyshov
@ 2010-12-15 8:42 ` Vitaly Kuznetsov
2010-12-15 12:27 ` Anton Chernyshov
2010-12-15 12:25 ` Michael Shigorin
1 sibling, 1 reply; 6+ messages in thread
From: Vitaly Kuznetsov @ 2010-12-15 8:42 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
Anton Chernyshov <flammifer@inbox.ru> writes:
> Тут после недавней проблемы с bootloader-utils появилась такая
> небольшая идейка. Сейчас в /boot при обновлении ядра генерятся
> симлинки вида vmlinuz и initrd , которые указывают на самое новое
> ядро. Может стоит немного дописать скрипты, которые создают эти
> ссылки, чтоб еще были симлинки vmlinuz.old и initrd.old, указывающие
> на старое ядро и его initrd?
А смысл? Если у вас новое ядро не загрузилось - вам всё равно придётся
что-то в загрузчике выбирать. Ну и выберите работающее.
Есть ещё, кстати, ссылки vmlinuz-{flavour}
--
Vitaly Kuznetsov, ALT Linux
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] Маленькое предложение по обновлению ядра
2010-12-15 8:42 ` Vitaly Kuznetsov
@ 2010-12-15 12:27 ` Anton Chernyshov
0 siblings, 0 replies; 6+ messages in thread
From: Anton Chernyshov @ 2010-12-15 12:27 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
15 декабря 2010 г. 11:42 пользователь Vitaly Kuznetsov
<vitty@altlinux.ru> написал:
> Anton Chernyshov <flammifer@inbox.ru> writes:
>
>> Тут после недавней проблемы с bootloader-utils появилась такая
>> небольшая идейка. Сейчас в /boot при обновлении ядра генерятся
>> симлинки вида vmlinuz и initrd , которые указывают на самое новое
>> ядро. Может стоит немного дописать скрипты, которые создают эти
>> ссылки, чтоб еще были симлинки vmlinuz.old и initrd.old, указывающие
>> на старое ядро и его initrd?
>
> А смысл? Если у вас новое ядро не загрузилось - вам всё равно придётся
> что-то в загрузчике выбирать. Ну и выберите работающее.
Я grub использую первой версии и если бы такие симлинки были, конфиг
писать было бы проще. А с grub2 было бы тоже проще, кстати, если б в
меню попадали только симлинки, а не вообще все, что находят его
скрипты.
> Есть ещё, кстати, ссылки vmlinuz-{flavour}
Я про них просто не стал писать. Было бы, конечно, хорошо, если бы
создавались все симлинки - и vmlinuz, и vmlinuz-{flavour} и для
нового, и для старого ядер.
--
С уважением,
Чернышов Антон
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] Маленькое предложение по обновлению ядра
2010-12-15 8:27 [sisyphus] Маленькое предложение по обновлению ядра Anton Chernyshov
2010-12-15 8:42 ` Vitaly Kuznetsov
@ 2010-12-15 12:25 ` Michael Shigorin
2010-12-16 7:51 ` Гареев Станислав
2010-12-17 12:04 ` Alexey Gladkov
1 sibling, 2 replies; 6+ messages in thread
From: Michael Shigorin @ 2010-12-15 12:25 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
On Wed, Dec 15, 2010 at 11:27:33AM +0300, Anton Chernyshov wrote:
> Тут после недавней проблемы с bootloader-utils появилась такая
> небольшая идейка.
У меня была ещё одна -- хотя бы к одному ядру (например,
установленному с дистрибутивом) генерить initrd, содержащий
все доступные стораджевые модули. Чтоб было больше шансов
хоть как-то взлететь после смены контроллера/материнки.
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] Маленькое предложение по обновлению ядра
2010-12-15 12:25 ` Michael Shigorin
@ 2010-12-16 7:51 ` Гареев Станислав
2010-12-17 12:04 ` Alexey Gladkov
1 sibling, 0 replies; 6+ messages in thread
From: Гареев Станислав @ 2010-12-16 7:51 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
On Wednesday 15 December 2010 15:25:37 Michael Shigorin wrote:
> On Wed, Dec 15, 2010 at 11:27:33AM +0300, Anton Chernyshov wrote:
> > Тут после недавней проблемы с bootloader-utils появилась такая
> > небольшая идейка.
>
> У меня была ещё одна -- хотя бы к одному ядру (например,
> установленному с дистрибутивом) генерить initrd, содержащий
> все доступные стораджевые модули. Чтоб было больше шансов
> хоть как-то взлететь после смены контроллера/материнки.
Обобщу предложения:
А если предусмотреть наряду с "безопасным режимом" загрузку такого ядра в
котором всё подряд не вынесено в модули "натуральный монолит". Таким образом
будет одно деурное ядро, хоть и не отличающееся быстротой.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] Маленькое предложение по обновлению ядра
2010-12-15 12:25 ` Michael Shigorin
2010-12-16 7:51 ` Гареев Станислав
@ 2010-12-17 12:04 ` Alexey Gladkov
1 sibling, 0 replies; 6+ messages in thread
From: Alexey Gladkov @ 2010-12-17 12:04 UTC (permalink / raw)
To: sisyphus
15.12.2010 15:25, Michael Shigorin wrote:
> У меня была ещё одна -- хотя бы к одному ядру (например,
> установленному с дистрибутивом) генерить initrd, содержащий
> все доступные стораджевые модули. Чтоб было больше шансов
> хоть как-то взлететь после смены контроллера/материнки.
Если вы используете make-initrd, можете создать дополнительный конфиг
в каталоге /etc/initrd.mk.d и для каждого ядра будет генерироваться
ещё один initrd с другим содержимым.
См. /etc/initrd.mk.d/rescue.mk.example для примера.
--
Rgrds, legion
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-12-17 12:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-15 8:27 [sisyphus] Маленькое предложение по обновлению ядра Anton Chernyshov
2010-12-15 8:42 ` Vitaly Kuznetsov
2010-12-15 12:27 ` Anton Chernyshov
2010-12-15 12:25 ` Michael Shigorin
2010-12-16 7:51 ` Гареев Станислав
2010-12-17 12:04 ` Alexey Gladkov
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