ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Michael A. Kangin" <mak@complife.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] "partitionable" mdraid & raidstop fix
Date: Sun, 26 May 2013 22:52:01 +0400
Message-ID: <51A259D1.1040602@complife.ru> (raw)
In-Reply-To: <541481369377073@web19f.yandex.ru>

24.05.2013 10:31, Mike Lykov пишет:

> live-install все ставит, кроме загрузчика (extlinux)  - не обошлось без патча

mdadm --detail /dev/md0 |grep active.*/dev/ |awk '{print $7}'
/dev/sdb1
/dev/sdd1
/dev/sde1
/dev/sda1

Наверное ставить grub в /dev/sdb1 смысла не имеет.
Я согласен, что substr несколько топорно, но, боюсь, и этот патч не хорош.
Думаю, правильно было бы парсить вывод udevadm info, или спрашивать у
него нужный query.

> --- ./live-install.orig 2013-05-24 10:08:42.827295631 +0400
> +++ ./live-install      2013-05-24 10:08:22.069241333 +0400
> @@ -109,5 +109,5 @@
> 
>  if echo $BOOT_DEVICE |grep -q /dev/md; then
> -       mdadm --detail $BOOT_DEVICE |grep active.*/dev/ |awk '{print substr($7, 1, length($7)-1)}' | \
> +       mdadm --detail $BOOT_DEVICE |grep active.*/dev/ |awk '{print $7}' | \
>                 while read REAL_BOOT_DEVICE; do
>                         install_loader $REAL_BOOT_DEVICE


-- 
wbr, Michael A. Kangin


  parent reply	other threads:[~2013-05-26 18:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-24  6:31 Mike Lykov
2013-05-24  7:11 ` Mike Lykov
2013-05-26 17:29   ` Sergey
2013-05-26 18:52 ` Michael A. Kangin [this message]
2013-05-27  4:17   ` Mike Lykov

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=51A259D1.1040602@complife.ru \
    --to=mak@complife.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