Re: Copying files from the cd under %post?

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

 



"Taylor, ForrestX" <forrestx.taylor@xxxxxxxxx> writes:

> You have to use the --nochroot option.  I tried in 6.2 to --nochroot, and
> then chroot /mnt/sysimage but I could never get that to work (possibly
> chroot wasn't available?).

I've been using this under redhat 6.2:

---8<--- snip ---8<---

%post --nochroot

## non chroot code
cp /mnt/source/... ....

cat <<'_EOF_' > /mnt/sysimage/tmp/post.sh.$$

## chroot stuff
dd if=/dev/zero of=/dev/null count=1

_EOF_

chroot /mnt/sysimage /bin/sh /tmp/post.sh.$$

---8<--- snip ---8<---

-- 
john chia <john@xxxxxxxxxxx>                                  starnix inc.
tollfree: 1-87-pro-linux                        thornhill, ontario, canada
http://www.starnix.com              professional linux services & products





[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