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
CURLOPT_UNIX_SOCKET_PATH(3)				     curl_easy_setopt options				       CURLOPT_UNIX_SOCKET_PATH(3)

NAME
CURLOPT_UNIX_SOCKET_PATH - set Unix domain socket SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_UNIX_SOCKET_PATH, char *path); DESCRIPTION
Enables the use of Unix domain sockets as connection endpoint and sets the path to path. If path is NULL, then Unix domain sockets are dis- abled. An empty string will result in an error at some point, it will not disable use of Unix domain sockets. When enabled, curl will connect to the Unix domain socket instead of establishing a TCP connection to a host. Since no TCP connection is created, curl does not need to resolve the DNS hostname in the URL. The maximum path length on Cygwin, Linux and Solaris is 107. On other platforms it might be even less. Proxy and TCP options such as CURLOPT_TCP_NODELAY(3) are not supported. Proxy options such as CURLOPT_PROXY(3) have no effect either as these are TCP-oriented, and asking a proxy server to connect to a certain Unix domain socket is not possible. The application does not have to keep the string around after setting this option. DEFAULT
Default is NULL, meaning that no Unix domain sockets are used. PROTOCOLS
All protocols except for file:// and FTP are supported in theory. HTTP, IMAP, POP3 and SMTP should in particular work (including their SSL/TLS variants). EXAMPLE
Given that you have an nginx server running, listening on /tmp/nginx.sock, you can request a HTTP resource with: curl_easy_setopt(curl_handle, CURLOPT_UNIX_SOCKET_PATH, "/tmp/nginx.sock"); curl_easy_setopt(curl_handle, CURLOPT_URL, "http://localhost/"); If you are on Linux and somehow have a need for paths larger than 107 bytes, you could use the proc filesystem to bypass the limitation: int dirfd = open(long_directory_path_to_socket, O_DIRECTORY | O_RDONLY); char path[108]; snprintf(path, sizeof(path), "/proc/self/fd/%d/nginx.sock", dirfd); curl_easy_setopt(curl_handle, CURLOPT_UNIX_SOCKET_PATH, path); /* Be sure to keep dirfd valid until you discard the handle */ AVAILABILITY
Since 7.40.0. RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
CURLOPT_OPENSOCKETFUNCTION(3), unix(7), libcurl 7.54.0 December 21, 2016 CURLOPT_UNIX_SOCKET_PATH(3)
All times are GMT -4. The time now is 12:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy