RE: During Fedora Core 4 kickstart post installation, postgresql command initdb doesn't work

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

 



You are right, when I use console 2 to see where is
/var/nm2 I found it is actually /mnt/sysimage/var/nm2,
but it's empty. And when I "ls /var/nm2", I got no
such file or directory error message.

My question is why Redhat 9.0 post installation allows
me to do initdb successfully but Fedora Core 4 cannot?



jing
 
--- Mike McGrath <mmcgrath@xxxxxxxxxxxxx> wrote:

>  
> 
> > -----Original Message-----
> > From: fedora-list-bounces@xxxxxxxxxx 
> > [mailto:fedora-list-bounces@xxxxxxxxxx] On Behalf
> Of jing han
> > Sent: Thursday, December 08, 2005 9:29 AM
> > To: For users of Fedora Core releases
> > Subject: RE: During Fedora Core 4 kickstart post 
> > installation,postgresql command initdb doesn't
> work
> > 
> > Sure, my config is:
> > 
> > 
> > #Generated by Kickstart Configurator
> > #platform=x86, AMD64, or Intel EM64T
> > 
> > #System  language
> > lang en_US
> > #Language modules to install
> > langsupport zh_CN en_CA fr_CA --default=en_US
> #System 
> > keyboard keyboard us #System mouse mouse #Root
> password 
> > rootpw --iscrypted
> $1$7Ib1jQg6$hY./MIJpsiZxYqY/p5kxW/
> > #Reboot after installation
> > reboot
> > #Use text mode install
> > text
> > #Install OS instead of upgrade
> > install
> > #Use CDROM installation media
> > cdrom
> > #System bootloader configuration
> > bootloader --location=mbr  --driveorder=sda
> --append="rhgb quiet"
> > #Clear the Master Boot Record
> > zerombr yes
> > #Partition clearing information
> > clearpart --all --initlabel
> > #Disk partitioning information
> > part /boot --fstype ext3 --size 250
> > part swap --size 512
> > part / --fstype ext3 --size 1 --grow --ondisk=sda
> #System 
> > authorization infomation auth  --useshadow 
> --enablemd5 
> > #Firewall configuration firewall --enabled --http
> #SELinux 
> > configuration selinux --disabled
> > 
> > #XWindows configuration information
> > xconfig --depth=32 --resolution=1024x768 
> > --defaultdesktop=GNOME --startxonboot #Package
> install 
> > information %packages --resolvedeps @ everything @
> 
> > language-support kernel-smp-devel kernel-smp grub
> e2fsprogs
> > 
> > %post
> > 
> > #Create system users
> > /usr/sbin/adduser user
> > #
> > ##
> > ###
> >
>
##############################################################
> > ##################
> > # Creating expect script to set passwords on
> accounts echo 
> > '#!/usr/bin/expect' > passwd.expect echo 'set user
> [lindex 
> > $argv 0]' >> passwd.expect echo 'set newpass
> [lindex $argv 
> > 1]' >> passwd.expect echo 'spawn /usr/bin/passwd
> $user' >> 
> > passwd.expect echo 'expect word:' >> passwd.expect
> echo 
> > 'sleep 1' >> passwd.expect echo 'send $newpass\r'
> >> 
> > passwd.expect echo 'expect word:' >> passwd.expect
> echo 
> > 'sleep 1' >> passwd.expect echo 'send $newpass\r'
> >> 
> > passwd.expect echo 'expect success:' >>
> passwd.expect # ## 
> > ### 
> >
>
##############################################################
> > ##################
> > chmod a+x passwd.expect
> > ./passwd.expect user 12345
> > rm -Rf passwd.expect
> > 
> > ......
> > ......
> > 
> > #
> > ##
> > ###
> >
>
##############################################################
> > ##################
> > #install postgresql database
> > su -l postgres -c "/usr/bin/initdb -D /var/nm2"
> > .........................
> > 
> > 
> > after finishing installation and computer reboot,
> I found 
> > user account is created but passwd is not created.
> > 
> > I also found that /var/nm2 directory is empty
> after reboot, 
> > which means initdb doesn't work and files under
> /var/nm2 not 
> > generated by initdb.
> > 
> > 
> > 
> > jing
> > 
> > 
> > --- Mike McGrath <mmcgrath@xxxxxxxxxxxxx> wrote:
> > 
> > >  
> > > 
> > > > -----Original Message-----
> > > > From: fedora-list-bounces@xxxxxxxxxx 
> > > > [mailto:fedora-list-bounces@xxxxxxxxxx] On
> Behalf
> > > Of jing han
> > > > Sent: Thursday, December 08, 2005 7:22 AM
> > > > To: fedora-list@xxxxxxxxxx
> > > > Subject: During Fedora Core 4 kickstart post 
> > installation,postgresql 
> > > > command initdb doesn't
> > > work
> > > > 
> > > > Hello,
> > > > 
> > > > I've got a problem with Fedora Core 4
> kickstart
> > > post
> > > > installation. My kickstart file works well
> with
> > > RedHat 9.0. 
> > > > When I transplant it to Fedora Core 4, I found
> > > that initdb
> > > > doesn't work during post installation time. We
> > > also use
> > > > exepect utility to create user account
> password,
> > > and I found
> > > > that expect utility doesn't work either.
> > > > 
> > > > Why this happen in Fedora Core 4?
> > > > 
> > > > Any answer will be greatly appreciated.
> > > > 
> > > > 
> > > > 
> > > > jing
> > > > 
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Tired of spam?  Yahoo! Mail has the best spam
> > > protection
> > > > around http://mail.yahoo.com
> > > 
> > > can you post your config?
> > > 
> > > 	-Mike
> > > 
> > > --
> > > fedora-list mailing list
> > > fedora-list@xxxxxxxxxx
> > > To unsubscribe:
> > >
> https://www.redhat.com/mailman/listinfo/fedora-list
> > > 
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> > http://mail.yahoo.com 
> > 
> 
> I have a hunch you're running into a chroot
> environment.  Once Anaconda
> gets to the %post section of the kickstart script it
> runs everything in
> a chrooted environment /mnt/sysimage.  At the end of
> your kickstart
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux