Re: cdrom issue

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

 



Gerald Waugh wrote:
John Summerfield wrote;
Gerald Waugh wrote:
On CentOS4 we mounted the install cdrom in %post
And copied some files over to the hard drive.
This does not work with CentOS5.2

%post --nochroot
# Mount CDROM
/usr/bin/mkdir /mnt/source
# /usr/bin/mount /tmp/cdrom /mnt/source
/usr/bin/mount /dev/cdrom /mnt/source
Here, add
/bin/sh
# Move PKGS Over to /tmp/PKGS
/usr/bin/mkdir /mnt/sysimage/tmp/PKGS
/usr/bin/cp -Rp /mnt/source/PKGS/* /mnt/sysimage/tmp/PKGS >/dev/null
2>&1

# Unmount CDROM
/usr/bin/umount /mnt/source

%post
# Run post install script
/tmp/finish_install.sh
Here, add
/bin/bash --login

These will allow you to poke around and see what's what.

Oops! stalled at "Running post-install scripts"

<chortle>

That's the shell awaiting for your input. I don't recall which console it appears on, but you can force the issue with a preliminary chvt.




Gerald

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list



--

Cheers
John

-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxx
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[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