Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Unable to open input kickstart file curl#37 Post 303036907 by Sumanthsv on Wednesday 17th of July 2019 01:11:46 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
KSSHELL(1)						      General Commands Manual							KSSHELL(1)

NAME
ksshell -- an interactive kickstart shell SYNOPSIS
ksflatten [-i | --input INFILE] [-o | --output OUTFILE] [-v | --version VERSION] DESCRIPTION
ksshell is an interactive kickstart shell. It optionally takes an input kickstart file as the basis, allows the user to specify additional kickstart commands, and then writes out the finished kickstart file to stdout or the given file name. This program supports all the usual readline niceties including tab completion of kickstart commands and their options, though not the values those options can take. In addition to understanding all the kickstart commands, ksshell has some builtin commands of its own to make working with kickstart files in the context of a shell easier: .clear Clear the existing kickstart data, including any from INFILE. This essentially starts you over from a blank state. .quit Quit the interactive shell, either saving to the file given by OUTFILE or printing to stdout if none was given. .show Print the current kickstart file state. EXIT STATUS
ksflatten returns 0 on success, and 1 if VERSION is incorrect. If INFILE does not exist, a warning will be printed but the user will still be dumped to the interactive shell. OPTIONS
-i, --input INFILE The name of the input kickstart file. -o, --output OUTFILE Write the flattened kickstart file to OUTFILE, or stdout if no filename is given. -v, --version VERSION Use this version of kickstart syntax when processing the file, or the latest if no version is given. SEE ALSO
ksvalidator (1), ksverdiff (1) KSSHELL(1)
All times are GMT -4. The time now is 09:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy