Unable to open input kickstart file curl#37


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Unable to open input kickstart file curl#37
# 1  
Old 07-17-2019
Unable to open input kickstart file curl#37

Hi,

Getting the below error while installing from ks.cfg
Code:
unable to open input kickstart file curl#37  Couldn't open file /tmp/swappart

Here am trying to include /tmp/swappart file from pre section under disks and partition section. Dont know where exactly am doing wrong
My kickstart file looks like below,
Code:
                install
                cdrom
                eula --agreed
                firstboot --disable
                text
                reboot

                # System
                lang en_US.UTF-8
                keyboard us
                
                # Network information
                network  --bootproto=static --device=ens192 --onboot=off --ipv6=auto --no-activate
                network  --hostname=localhost.localdomain

                # Authentication
                auth  --useshadow  --enablemd5
                rootpw xxxx
                %pre
                act_mem=$((`grep MemTotal: /proc/meminfo | sed ‘s/^MemTotal: *//'|sed ‘s/ .*//'` / 1024/2))
                cat > /tmp/swappart <<END
                logvol swap --fstype="swap" --name=lv_swap --vgname=sysvg --size=$act_mem
                END
                %end
                # Disk & Partitions
                bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
                ignoredisk --only-use=sda
                bootloader --location=mbr --boot-drive=sda
                zerombr
                clearpart --all --initlabel --drives=sda
                part /boot --fstype xfs --size=1000
                part pv.01  --size=100000 --grow
                volgroup sysvg pv.01
                logvol /     --vgname=sysvg --fstype=xfs    --name=lv_root --size=20000
                logvol /var  --vgname=sysvg --fstype=xfs    --name=lv_var  --size=50000
                logvol /tmp  --vgname=sysvg --fstype=xfs    --name=lv_tmp  --size=10000
                logvol /home --vgname=sysvg --fstype=xfs    --name=lv_home --size=20000
		logvol none  --vgname=sysvg --fstype="None" --name=rpool   --size=11544 --thinpool --grow
                %include /tmp/swappart
                ######################################################
                # Packages
                %packages
                @Core
                authconfig
                yum-utils
                binutils.x86_64
                compat-libcap1.x86_64
                gcc.x86_64
                gcc-c++.x86_64
                glibc.i686
                glibc.x86_64
                glibc-devel.i686
                glibc-devel.x86_64
                ksh
                libaio.i686
                libaio.x86_64
                libaio-devel.i686
                libaio-devel.x86_64
                libgcc.i686
                libgcc.x86_64
                libstdc++.i686
                libstdc++.x86_64
                libstdc++-devel.i686
                libstdc++-devel.x86_64
                libXi.i686
                libXi.x86_64
                libXtst.i686
                libXtst.x86_64
                make.x86_64
                sysstat.x86_64
                zip
                unzip
                perl
                vim
                net-tools
		autofs
                nfs-utils
                open-vm-tools
                sos
                mlocate
                ed
                -mariadb-libs
                %end

TIA
# 2  
Old 07-17-2019
Hello Sumanthsv,

Can you not just add the line logvol swap --fstype="swap" --name=lv_swap --vgname=sysvg --size=$act_mem within the partitioning layout that you have for the others?

Failing that, perhaps ensure that the swap volume is the last item on the partition list and then grow it on first boot.



Just a thought,
Robin
# 3  
Old 07-17-2019
HI rbatte1,

Thanks for the reply.
I have removed the extra white spaces in the kickstart file, which resolved the issue

Thanks

Last edited by rbatte1; 07-17-2019 at 01:39 PM..
These 2 Users Gave Thanks to Sumanthsv For This Post:
# 4  
Old 07-17-2019
Glad you got a solution. Thank you for telling us how. Maybe someone else will have the same in future and can re-use it.



Kind regards,
Robin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

HELP - loop a curl command with different variables from input file

Hi guys! Kind of new to bash scripting and now I'm stuck. I need to curl with these variables: "{ \"nodename\": \"$1\", \"ipaddress\": \"$2\", \"poolname\": \"$3\", \"port\": \"$4\", \"loadbalancer\" : \"$5\" }" and my input_file.txt contains server001 10.10.10.01 serverpool1 80... (4 Replies)
Discussion started by: yort
4 Replies

2. Solaris

./curl -V showing fatal: libldap.so.5: open failed: No such file or directory

Hi Guys, I am facing this Error bash-2.03$ ./curl -V ld.so.1: curl: fatal: libldap.so.5: open failed: No such file or directory Killed bash-2.03$ while executing ./curl -V in /opt/sfw/bin directory. I am using Sun Solaris 10. which package upgrage can give me this missing... (9 Replies)
Discussion started by: manalisharmabe
9 Replies

3. Shell Programming and Scripting

Unable to open a file in perl

Not able to open a file using this code why not? use strict; use warnings; my $file = "verInfo.txt"; unless(open FILE, $file) { # Die with error message # if we can't open it. die "\nUnable to open $file\n"; } my $line = <FILE>; print $line; close FILE; (7 Replies)
Discussion started by: srijith
7 Replies

4. Red Hat

unable to open / create any file in vi

Hi, I am unable to create/open any file in vi editor for normal user, though using root I am able to create/open any file, using redhat 5.5, example vi test it showing nothing after entering command (9 Replies)
Discussion started by: manoj.solaris
9 Replies

5. Shell Programming and Scripting

PCC-F-NOERRFILE, unable to open error message file

Hi, I was compiling few C programs in the unix server and getting the following error message rm: /home/a0xxx28/AVT/SEEDLIBRARYDB/LIB/*.a non-existent proc MODE=ANSI CODE=ANSI_C INCLUDE=/home/a0xxx28/PVT/SEEDLIBRARYDB/INCLUDE INCLUDE=/home/a0xxx28/PVT/SEEDLIBRARY/INCLUDE ... (1 Reply)
Discussion started by: kavithakuttyk
1 Replies

6. UNIX for Advanced & Expert Users

Unable to delete an open file

I am working on a unix server. I killed all the processes with my id on the machine. After that I tried to delete a file, I got an error:- file not removed.Text File busy. Deletion of directory prompted:- Directory not empty. Can anyone help me regarding this...??? Thanks, Vikas (11 Replies)
Discussion started by: vikasrout
11 Replies

7. Solaris

unable to open a .log(4MB) file in vi

am unable to open a .log file which is 4MB size. (18 Replies)
Discussion started by: venkatramana
18 Replies

8. UNIX for Dummies Questions & Answers

Unable to open .sql file

Hi , I am running Oracle 8.1.7 on HP-UX B.11.00. Recently I have upgraded Oracle from 8.0.6. to 8.1.7. Almost all the shell script has the Sqlplus as sqlplus -s @/apps/prod/sql/xxxx.sql > /apps/prod/log/xxxx.out . However I receive the error SP2-0310: unable to open file... (2 Replies)
Discussion started by: Ananth.p
2 Replies

9. UNIX for Dummies Questions & Answers

SP2-0310 unable to open file

Hi , We are running Oracle 8.1.7 on HP-UX B.11.00. Recently we have upgraded Oracle from 8.0.6. to 8.1.7. Almost all the shell script we use has the Sqlplus as sqlplus -s @/apps/prod/sql/xxxx.sql > /apps/prod/log/xxxx.out . However we receive the error SP2-0310: unable to open file... (2 Replies)
Discussion started by: guru_2007
2 Replies

10. Red Hat

kickstart output/input

Hello Linux gurus! Ive got a RedHat EnterP. 4 kickstart server that is also running RedHat EnterP 4. It is working as i should and no problem at all. However, now i want to run a little script with output and input. Ive read up a bit and what i realized is that a input in %pre phase is not a... (3 Replies)
Discussion started by: maskot
3 Replies
Login or Register to Ask a Question