From: Ivan Zakharyaschev <vanyaz@mccme.ru> To: <devel@linux.iplabs.ru> Subject: [devel] mkbootdisk Date: Thu, 8 Feb 2001 22:22:25 +0300 (MSK) Message-ID: <Pine.LNX.4.33L.0102082201580.2095-200000@zephyrous.ru> (raw) [-- Attachment #1: Type: TEXT/PLAIN, Size: 224 bytes --] Hello! Опробовал mkbootdisk: поначалу он тихо падал (наверное, у меня необычная конфигурация: партиции заданы метками в /etc/fstab). После небольших исправлений (в приложенном патче) заработал. -- Best regards, Ivan Z. [-- Attachment #2: a patch for mkbootdisk-1.2.8-ipl5mdk --] [-- Type: TEXT/PLAIN, Size: 879 bytes --] --- /sbin/mkbootdisk.orig Thu Feb 8 21:16:36 2001 +++ /sbin/mkbootdisk Thu Feb 8 22:14:24 2001 @@ -16,6 +16,9 @@ { RETVAL=$? trap '' EXIT + if [ "$RETVAL" != 0 ]; then + echo 'Something odd happened while executing the script, exiting...' + fi umount "$MOUNTDIR" &>/dev/null ||: rm -rf "$MOUNTDIR" exit $RETVAL @@ -164,8 +167,8 @@ # whee, now we have to look through every partition looking for # the thing called $rootlabel, which could be raid. Ick. - list=$(tail +3 /proc/partitions |awk '{ print $4 '} |grep '^md') - list="$list $(tail +3 /proc/partitions |awk '{ print $4 '} |grep -v '^md')" + list=$(tail +3 /proc/partitions |awk '{ print $4 }' |grep '^md' ||:) + list="$list $(tail +3 /proc/partitions |awk '{ print $4 }' |grep -v '^md' ||:)" rootdev= for dev in $list; do if /sbin/tune2fs -l /dev/$dev &>/dev/null; then
next reply other threads:[~2001-02-08 19:22 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-02-08 19:22 Ivan Zakharyaschev [this message] 2001-02-08 21:44 ` Dmitry V. Levin 2001-02-08 22:30 ` Ivan Zakharyaschev 2001-02-08 22:55 ` Dmitry V. Levin
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=Pine.LNX.4.33L.0102082201580.2095-200000@zephyrous.ru \ --to=vanyaz@mccme.ru \ --cc=devel@linux.iplabs.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 Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git