Re: mke2fs hangs during partitioning phase

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

 



--- Martin Lichtin <lichtin@xxxxxxxxx> wrote:
> > Martin, when you run the mke2fs "manually" in
> %post,
> > is it a %post --nochroot or a regular %post?  If
> it's
> > a regular %post, what happens if you try it with a
> > %post --chroot?
> 
> It's a regular %post, I basically have the following
> code:
> 
> echo , | sfdisk /dev/rd/c0d1
> mke2fs /dev/rd/c0d1p1
> cat <<EOF >>/etc/fstab
> /dev/rd/c0d1p1          /HardDriveBay1          ext2
>    defaults        1 2
> EOF
> mkdir /HardDriveBay1
> mount /HardDriveBay1
> 
> I don't think this stuff would work using the
> --nochroot option.
> 

The sfdisk would not, since it is not in the
ramdisk environment, by default.  But, it would
be in /mnt/sysimage/sbin/sfdisk.  So if you 
ran it with %post --chroot, and substituted
/mnt/sysimage/sbin/sfdisk, the script would at least
run.

--Seth


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux