All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@turbolabs.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] LVM
Date: Wed, 19 Sep 2001 16:51:34 -0600	[thread overview]
Message-ID: <20010919165134.R14526@turbolinux.com> (raw)
In-Reply-To: <87u1xzv3gm.fsf@arm.t19.ds.pwr.wroc.pl>

On Sep 19, 2001  13:12 +0200, Arkadiusz Miskiewicz wrote:
> > you MUST run lvmcreate_initrd and use the initrd it creates if you run
> > an LVM root fs.
> btw. lvmcreate_initrd is broken. It copies /bin/bash and /bin/sh while
> on some systems /bin/sh is link to /bin/othershell (like /bin/ksh on
> my systems), so initrd created by lvmcreate_initrd is not usable on
> these machines.

Please try the below patch.  If it works I can check it into CVS.

Cheers, Andreas
====================  initrd-1.0.1.diff  ==========================
diff -u -r1.12 lvmcreate_initrd
--- tools/lvmcreate_initrd	2001/08/30 18:57:31	1.12
+++ tools/lvmcreate_initrd	2001/09/19 22:50:03
@@ -135,7 +135,7 @@
 
 # The size of the ramdisk is automatically calculated unless this is set
 #INITRDSIZE=
-INITRDFILES="/sbin/vgchange /sbin/vgscan /bin/bash /bin/mount /bin/umount /bin/sh /bin/rm"
+INITRDFILES="/sbin/vgchange /sbin/vgscan /bin/mount /bin/umount /bin/rm"
 
 if [ "$USEMOD" ]; then
    # Check for an LVM module, otherwise it must be compiled into the kernel
@@ -343,6 +343,13 @@
 find $INITRDFILES | cpio -pdm $OPT_Q $TMPMNT
 if [ $? -ne 0 ]; then
    echo "$cmd -- ERROR cpio to ram disk"
+   cleanup 1
+fi
+
+# Copy /bin/sh directly to avoid issues with symlinks
+cp -p /bin/sh $TMPMNT/bin/sh
+if [ $? -ne 0 ]; then
+   echo "$cmd -- ERROR copying /bin/sh to ram disk"
    cleanup 1
 fi
--
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

  reply	other threads:[~2001-09-19 22:51 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-10 11:37 [linux-lvm] LVM IT3 Stuart B. Tener, USNR-R
2001-09-10 14:05 ` José Luis Domingo López
2001-09-10 13:03   ` IT3 Stuart B. Tener, USNR-R
2001-09-10 16:47     ` José Luis Domingo López
2001-09-11  2:35       ` IT3 Stuart B. Tener, USNR-R
2001-09-11 12:20         ` José Luis Domingo López
2001-09-11 11:03           ` IT3 Stuart B. Tener, USNR-R
2001-09-11 12:04             ` svetljo
2001-09-11 14:16               ` Heinz J . Mauelshagen
2001-09-11 15:14                 ` svetljo
2001-09-12  9:08           ` IT3 Stuart B. Tener, USNR-R
2001-09-12  9:59             ` svetljo
2001-09-12 10:51               ` IT3 Stuart B. Tener, USNR-R
2001-09-12 11:48                 ` svetljo
2001-09-12 13:44                   ` Jason Edgecombe
2001-09-12 16:07                     ` Ed Tomlinson
2001-09-12 22:41                       ` IT3 Stuart B. Tener, USNR-R
2001-09-12 23:21                         ` Andreas Dilger
2001-09-12 23:30                           ` IT3 Stuart B. Tener, USNR-R
2001-09-13  7:49                             ` svetljo
2001-09-13 10:27                               ` IT3 Stuart B. Tener, USNR-R
2001-09-13 13:01                                 ` Jason Edgecombe
2001-09-13 16:50                                   ` IT3 Stuart B. Tener, USNR-R
2001-09-13 17:03                                     ` svetljo
2001-09-13 20:31                                       ` IT3 Stuart B. Tener, USNR-R
2001-09-13 21:43                                         ` svetljo
2001-09-19 11:12                                   ` Arkadiusz Miskiewicz
2001-09-19 22:51                                     ` Andreas Dilger [this message]
2001-09-22 11:51                                       ` Arkadiusz Miskiewicz
2001-09-23 12:33                                         ` [linux-lvm] LVM - mkinitrd.sh Bas
2001-09-24  5:21                                           ` [linux-lvm] Search archives broken? Andrew Certain
2001-09-13 13:05                                 ` [linux-lvm] LVM Heinz J . Mauelshagen
2001-09-13 13:35                                 ` svetljo
2001-09-13 16:34                                   ` IT3 Stuart B. Tener, USNR-R
2001-09-13  7:51                           ` svetljo
2001-09-13 10:21                             ` IT3 Stuart B. Tener, USNR-R
2001-09-13  1:01                         ` Jason Edgecombe
2001-09-13  2:04                           ` IT3 Stuart B. Tener, USNR-R
2001-09-13  7:32                             ` svetljo
2001-09-13 10:35                               ` IT3 Stuart B. Tener, USNR-R
2001-09-13 13:31                                 ` svetljo
2001-09-13 16:43                                   ` IT3 Stuart B. Tener, USNR-R
2001-09-12 22:47                     ` IT3 Stuart B. Tener, USNR-R
2001-09-12 23:26                       ` Andreas Dilger
2001-09-12 23:31                         ` IT3 Stuart B. Tener, USNR-R
2001-09-12 23:35                   ` IT3 Stuart B. Tener, USNR-R
  -- strict thread matches above, loose matches on Subject: below --
2006-08-25  7:08 shirish.rane
2006-08-31  5:57 ` Luca Berra
2005-10-21 14:59 [linux-lvm] lvm Carlos Gomez
2004-09-21 16:03 [linux-lvm] LVM Little, Chris
2004-09-21 13:46 Johan.SEGERS
2004-09-21 16:44 ` Mark W. Jeanmougin
2004-09-23 13:48 ` Maximilian Viermetz
2000-12-01  7:36 [linux-lvm] lvm andreas
2000-12-03 14:29 ` Heinz J. Mauelshagen
2000-06-26  9:53 [linux-lvm] LVM Dale Kemp
2000-06-26 12:09 ` Heinz J. Mauelshagen

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=20010919165134.R14526@turbolinux.com \
    --to=adilger@turbolabs.com \
    --cc=linux-lvm@sistina.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.