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

Re: root fs mounts as ext2, others ext3



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





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