Zhang Huangbin
2010-Jun-08 16:25 UTC
[CentOS] Kickstart issue: 'dialog' doesn't work in %post, CentOS 5.5
Hi, all. I'm trying to customize a CentOS installation cd, but got trouble with kickstart. I want to use dialog[1] for command line based user interface, but it can't display correctly in kickstart with CentOS 5.5. Same ks file works with CentOS 5.3 (both i386 and x86_64). What's the different between CentOS 5.3/5.5? I can't find it in release notes. And how can i fix it? Thanks very much. :) My ks file: # =========install cdrom key --skip auth --useshadow --enablemd5 keyboard us lang en_US logging --level=debug selinux --disabled skipx timezone Asia/Hong_Kong text services --enabled=network bootloader --location=mbr zerombr clearpart --all --initlabel rootpw --iscrypted $1$h7EtIFv4$R9JQ4aCOVN7E9ml3A2SXv. firstboot --disable network --onboot=yes --bootproto=dhcp --hostname='iredos.iredmail.org' part swap --bytes-per-inode=4096 --fstype="swap" --size=512 part / --bytes-per-inode=4096 --fstype="ext3" --grow --size=1 %packages --excludedocs basesystem dialog %post --nochroot echo "* Mount CDROM" mkdir -p /mnt/sysimage/mnt/ mount -t iso9660 /tmp/cdrom /mnt/sysimage/mnt %post # Run in chrooted env. echo "* Export LC_ALL" export LC_ALL=C echo "* Set TERM" export TERM='linux' echo "* Set PATH" export PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" dialog --yesno "Yes or no" 0 0 # ======== END KS ======== [1] dialog: http://hightek.org/dialog/
Karanbir Singh
2010-Jun-08 18:20 UTC
[CentOS] Kickstart issue: 'dialog' doesn't work in %post, CentOS 5.5
Hi, On 08/06/2010 17:25, Zhang Huangbin wrote:> I want to use dialog[1] for command line based user interface, but it can't display correctly in kickstart with CentOS 5.5. Same ks file works with CentOS 5.3 (both i386 and x86_64). >I cant comment on your issue here as such, but my the way to achieve something along the lines of what you are doing is to build and drop in a firstboot module that could then use the interface setup via firstboot for user interaction. Generally doing user interaction at the level you are doing, in a kickstart file, is considered bad practice. - KB
John Doe
2010-Jun-09 09:39 UTC
[CentOS] Kickstart issue: 'dialog' doesn't work in %post, CentOS 5.5
From: Zhang Huangbin <zhbmaillistonly at gmail.com>> I'm trying to customize a CentOS installation cd, but got > trouble with kickstart. > I want to use dialog[1] for command line based > user interface, but it can't display correctly in kickstart with CentOS 5.5. > Same ks file works with CentOS 5.3 (both i386 and x86_64).What does "can't display correctly" mean? Checked /etc/termcap for available terminals? JD