[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: root fs mounts as ext2, others ext3

Right, since RH 7.2 ships with ext3 one would assume they have the pivot_root stuff in the mkinitrd script, so recreating the image should be enough. For older versions of RH, and other distros that may not be the case, and you may have to get an updated script, or edit the mkinitrd script to do something like what i described previously.


On Tue, 13 Nov 2001 17:08:54 +0000
"Stephen C. Tweedie" <sct redhat com> wrote:

> Hi,
> On Sun, Nov 11, 2001 at 01:46:57AM -0500, Andreas Boman wrote:
> > The issue lies with the mkinitrd script. I would assume that most distros have updated script at this time that take care of it, if not this is how what "works here"(tm).
> > 
> > in addition to "the normal stuff" you will find in your init rd image you need:
> > 1: static verions of mount,umount and pivot_root (in /bin on the image)
> > 2: the image needs a /mnt directory
> > 3: something like the following needs to be added to the linuxrc script on the image:
> > 	mount -n -t $rootfs $rootdev /mnt
> > 	mkdir -p /mnt/realroot
> > 	pivot_root /mnt /mnt/realroot
> At least for Red Hat 7.2, nothing new is required.  The trick, though,
> is in the ordering: mkinitrd picks up the fstype from /etc/fstab
> when the initrd is created, so if you change the root fstype in
> /etc/fstab, you need to recreate the initrd.  In other words, it's an
> ordering issue.
> Cheers,
>  Stephen
> _______________________________________________
> Ext3-users mailing list
> Ext3-users redhat com
> https://listman.redhat.com/mailman/listinfo/ext3-users

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]