Compare commits

...

3 Commits

Author SHA1 Message Date
Vlastimil Holer b1aab167f9
B #231: Add dependency on gawk
4 years ago
Petr Ospalý aa135576af
B #231: Workaround the mawk issue on Debian
4 years ago
Vlastimil Holer 3330604287
M #-: onesysprep add Alma, Rocky, OL flavours
4 years ago

@ -291,6 +291,23 @@ run_cmd()
fi fi
} }
# trivial test of awk command capabilities and compliance - it will output
# either YES or NO
is_awk_correct()
(
_awk_result=$(echo 'abcABC xyz123.' | awk '
{
sub(/[[:upper:]]+[[:space:]]+[[:alnum:]]+/, "");
print;
}')
if [ "${_awk_result}" = 'abc.' ] ; then
echo 'YES'
else
echo 'NO'
fi
)
# arg: [normal|summary] # arg: [normal|summary]
# if used with argument 'summary' then it will print out summary of supported # if used with argument 'summary' then it will print out summary of supported
# operations - otherwise it will output parseable: <op>:<default> # operations - otherwise it will output parseable: <op>:<default>
@ -306,16 +323,16 @@ parse_sysprep_operations()
next; next;
op = $1; op = $1;
sub(/^[[:space:]]*/, "", op); sub(/^[ ]*/, "", op);
sub(/[[:space:]]*$/, "", op); sub(/[ ]*$/, "", op);
default_op = $2; default_op = $2;
sub(/^[[:space:]]*/, "", default_op); sub(/^[ ]*/, "", default_op);
sub(/[[:space:]]*$/, "", default_op); sub(/[ ]*$/, "", default_op);
comment = $3; comment = $3;
sub(/^[[:space:]]*/, "", comment); sub(/^[ ]*/, "", comment);
sub(/[[:space:]]*$/, "", comment); sub(/[ ]*$/, "", comment);
count++; count++;
ops[count] = op; ops[count] = op;
@ -452,6 +469,19 @@ get_operations()
esac esac
) )
sanity_check()
{
# test the sanity of an awk implementation
_ONE_VALID_AWK=$(is_awk_correct)
export _ONE_VALID_AWK
if [ "${_ONE_VALID_AWK}" = 'NO' ] ; then
warn "The currently used awk command does not support POSIX:"
printf "\n%s\n\n" "$(awk -W version 2>&1 || true)"
printf "[!] NOTE: Install an alternative (e.g. gawk) or some operations may be skipped!\n\n"
fi
}
# this will try to guess the system it is running on and if it is supported by # this will try to guess the system it is running on and if it is supported by
# this script # this script
syscheck() syscheck()
@ -476,7 +506,7 @@ syscheck()
debian|ubuntu|devuan) debian|ubuntu|devuan)
return 0 return 0
;; ;;
fedora|centos|rhel) fedora|centos|rhel|almalinux|ol|rocky)
return 0 return 0
;; ;;
opensuse*) opensuse*)
@ -516,7 +546,7 @@ enter_single_mode()
return 0 return 0
fi fi
;; ;;
debian|ubuntu|devuan|fedora|centos|rhel|altlinux|opensuse*) debian|ubuntu|devuan|fedora|centos|rhel|almalinux|ol|rocky|altlinux|opensuse*)
_runlevel=$(runlevel | cut -d" " -f2) _runlevel=$(runlevel | cut -d" " -f2)
case "$_runlevel" in case "$_runlevel" in
1|S) 1|S)
@ -552,7 +582,7 @@ enter_single_mode()
msg "Entering single user mode..." msg "Entering single user mode..."
rc single rc single
;; ;;
debian|ubuntu|devuan|fedora|centos|rhel|altlinux|opensuse*) debian|ubuntu|devuan|fedora|centos|rhel|almalinux|ol|rocky|altlinux|opensuse*)
ask_to_enter_single_user_mode ask_to_enter_single_user_mode
msg "Entering single user mode..." msg "Entering single user mode..."
telinit 1 telinit 1
@ -661,6 +691,7 @@ parse_password_arguments()
} }
# arg: <length> # arg: <length>
# shellcheck disable=SC2120
gen_password() gen_password()
{ {
pw_length="${1:-16}" pw_length="${1:-16}"
@ -671,15 +702,17 @@ gen_password()
new_pw=$(pwgen -s "${pw_length}" 1) new_pw=$(pwgen -s "${pw_length}" 1)
break break
elif command -v openssl >/dev/null ; then elif command -v openssl >/dev/null ; then
# shellcheck disable=SC2086
new_pw="${new_pw}$(openssl rand -base64 ${pw_length} | tr -dc '[:alnum:]')" new_pw="${new_pw}$(openssl rand -base64 ${pw_length} | tr -dc '[:alnum:]')"
else else
new_pw="${new_pw}$(head /dev/urandom | tr -dc '[:alnum:]')" new_pw="${new_pw}$(head /dev/urandom | tr -dc '[:alnum:]')"
fi fi
# shellcheck disable=SC2000 # shellcheck disable=SC2000
# shellcheck disable=SC2086
[ "$(echo $new_pw | wc -c)" -ge "$pw_length" ] && break [ "$(echo $new_pw | wc -c)" -ge "$pw_length" ] && break
done done
echo "$new_pw" | cut -c1-${pw_length} echo "$new_pw" | cut -c1-"${pw_length}"
} }
# arg: <user:locked:disabled:file:password:random:value...> # arg: <user:locked:disabled:file:password:random:value...>
@ -963,17 +996,34 @@ run_ops()
"Run operation" "Run operation"
printf " ${SETCOLOR_ON_COMMAND}%s${SETCOLOR_OFF}\n" \ printf " ${SETCOLOR_ON_COMMAND}%s${SETCOLOR_OFF}\n" \
"${_op}" "${_op}"
# if-wrap
if eval "op_${_op_func}" ; then if eval "op_${_op_func}" ; then
_op_func_return_code=$?
else
_op_func_return_code=$?
fi
case "${_op_func_return_code}" in
0)
printf "${SETCOLOR_ON_HIGHLIGHT}%s${SETCOLOR_OFF}" \ printf "${SETCOLOR_ON_HIGHLIGHT}%s${SETCOLOR_OFF}" \
"Result" "Result"
printf " ... ${SETCOLOR_ON_OK}%s${SETCOLOR_OFF}\n\n" \ printf " ... ${SETCOLOR_ON_OK}%s${SETCOLOR_OFF}\n\n" \
"OK" "OK"
else ;;
1)
printf "${SETCOLOR_ON_HIGHLIGHT}%s${SETCOLOR_OFF}" \ printf "${SETCOLOR_ON_HIGHLIGHT}%s${SETCOLOR_OFF}" \
"Result" "Result"
printf " ... ${SETCOLOR_ON_FAILURE}%s${SETCOLOR_OFF}\n\n" \ printf " ... ${SETCOLOR_ON_FAILURE}%s${SETCOLOR_OFF}\n\n" \
"FAILED" "FAILED"
fi ;;
2)
printf "${SETCOLOR_ON_HIGHLIGHT}%s${SETCOLOR_OFF}" \
"Result"
printf " ... ${SETCOLOR_ON_FAILURE}%s${SETCOLOR_OFF}\n\n" \
"SKIPPED"
;;
esac
else else
# run non-verbosely # run non-verbosely
printf "${SETCOLOR_ON_HIGHLIGHT}%s${SETCOLOR_OFF}:" \ printf "${SETCOLOR_ON_HIGHLIGHT}%s${SETCOLOR_OFF}:" \
@ -981,14 +1031,30 @@ run_ops()
printf " ${SETCOLOR_ON_COMMAND}%-*s${SETCOLOR_OFF} ... " \ printf " ${SETCOLOR_ON_COMMAND}%-*s${SETCOLOR_OFF} ... " \
"$_max_oplength" \ "$_max_oplength" \
"${_op}" "${_op}"
# if-wrap
if _op_func_output=$(eval "op_${_op_func}" 2>&1) ; then if _op_func_output=$(eval "op_${_op_func}" 2>&1) ; then
_op_func_return_code=$?
else
_op_func_return_code=$?
fi
case "${_op_func_return_code}" in
0)
# shellcheck disable=SC2059 # shellcheck disable=SC2059
printf "${SETCOLOR_ON_OK}OK${SETCOLOR_OFF}\n" printf "${SETCOLOR_ON_OK}OK${SETCOLOR_OFF}\n"
else ;;
1)
# shellcheck disable=SC2059 # shellcheck disable=SC2059
printf "${SETCOLOR_ON_FAILURE}FAILED${SETCOLOR_OFF}\n" printf "${SETCOLOR_ON_FAILURE}FAILED${SETCOLOR_OFF}\n"
echo "$_op_func_output" echo "$_op_func_output"
fi ;;
2)
# shellcheck disable=SC2059
printf "${SETCOLOR_ON_FAILURE}SKIPPED${SETCOLOR_OFF}\n"
echo "$_op_func_output"
;;
esac
fi fi
done done
} }
@ -1616,6 +1682,11 @@ op_user_account()
( (
run_op() { echo "+ ${*}" ; "$@" ; } run_op() { echo "+ ${*}" ; "$@" ; }
if [ "${_ONE_VALID_AWK}" = 'NO' ] ; then
printf "[!] This test is skipped due to the incompatible awk implementation!\n"
return 2
fi
# comb the list # comb the list
_keep_list=$(echo "$ARG_USERS_KEEP" | \ _keep_list=$(echo "$ARG_USERS_KEEP" | \
sed -e 's/,/ /g' -e 's/[[:space:]]\+/\n/g' -e '/^$/d' | \ sed -e 's/,/ /g' -e 's/[[:space:]]\+/\n/g' -e '/^$/d' | \
@ -1771,6 +1842,11 @@ op_one_group_account()
( (
run_op() { echo "+ ${*}" ; "$@" ; } run_op() { echo "+ ${*}" ; "$@" ; }
if [ "${_ONE_VALID_AWK}" = 'NO' ] ; then
printf "[!] This test is skipped due to the incompatible awk implementation!\n"
return 2
fi
case "$(uname | tr '[:upper:]' '[:lower:]')" in case "$(uname | tr '[:upper:]' '[:lower:]')" in
linux) linux)
if [ -f /etc/login.defs ] ; then if [ -f /etc/login.defs ] ; then
@ -2012,6 +2088,8 @@ op_one_trim()
# improvement for the future... # improvement for the future...
#msg "Trim/discard the unused space" #msg "Trim/discard the unused space"
# TODO: check awk sanity if used...
#if command -v trim > /dev/null ; then #if command -v trim > /dev/null ; then
# _devs=$(< /etc/fstab awk ' # _devs=$(< /etc/fstab awk '
# { # {
@ -2204,6 +2282,8 @@ ARG_PASSWORD=$(parse_password_arguments "$ARG_PASSWORD")
# execute the requested action # execute the requested action
case "$action" in case "$action" in
'') '')
sanity_check
# ask before running # ask before running
ask_to_run_sysprep ask_to_run_sysprep
@ -2220,6 +2300,8 @@ case "$action" in
exit 0 exit 0
;; ;;
operations) operations)
sanity_check
# ask before running # ask before running
ask_to_run_sysprep ask_to_run_sysprep

@ -22,7 +22,7 @@ case "${TARGET}" in
TYPE=${TYPE:-freebsd} TYPE=${TYPE:-freebsd}
EXT=${EXT:-txz} EXT=${EXT:-txz}
TAGS=${TAGS:-bsd bsd_rc one sysv} TAGS=${TAGS:-bsd bsd_rc one sysv}
DEPENDS=${DEPENDS:-sudo bash curl base64 ruby open-vm-tools-nox11} DEPENDS=${DEPENDS:-sudo bash curl base64 ruby open-vm-tools-nox11 gawk}
PROVIDES=${PROVIDES:-} PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-addon-context} REPLACES=${REPLACES:-addon-context}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2} CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
@ -38,7 +38,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-.el6} RELSUFFIX=${RELSUFFIX:-.el6}
TYPE=${TYPE:-rpm} TYPE=${TYPE:-rpm}
TAGS=${TAGS:-rpm sysv one network-scripts} TAGS=${TAGS:-rpm sysv one network-scripts}
DEPENDS=${DEPENDS:-util-linux-ng bash curl bind-utils cloud-utils-growpart dracut-modules-growroot parted ruby rubygem-json sudo shadow-utils openssh-server open-vm-tools qemu-guest-agent} DEPENDS=${DEPENDS:-util-linux-ng bash curl bind-utils cloud-utils-growpart dracut-modules-growroot parted ruby rubygem-json sudo shadow-utils openssh-server open-vm-tools qemu-guest-agent gawk}
PROVIDES=${PROVIDES:-} PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init} REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2} CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
@ -54,7 +54,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-.el6} RELSUFFIX=${RELSUFFIX:-.el6}
TYPE=${TYPE:-rpm} TYPE=${TYPE:-rpm}
TAGS=${TAGS:-rpm sysv ec2 network-scripts} TAGS=${TAGS:-rpm sysv ec2 network-scripts}
DEPENDS=${DEPENDS:-util-linux-ng bash curl bind-utils cloud-utils-growpart dracut-modules-growroot parted ruby rubygem-json sudo shadow-utils openssh-server} DEPENDS=${DEPENDS:-util-linux-ng bash curl bind-utils cloud-utils-growpart dracut-modules-growroot parted ruby rubygem-json sudo shadow-utils openssh-server gawk}
PROVIDES=${PROVIDES:-} PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init} REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context} CONFLICTS=${CONFLICTS:-${REPLACES} one-context}
@ -69,7 +69,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-.el7} RELSUFFIX=${RELSUFFIX:-.el7}
TYPE=${TYPE:-rpm} TYPE=${TYPE:-rpm}
TAGS=${TAGS:-rpm systemd one network-scripts} TAGS=${TAGS:-rpm systemd one network-scripts}
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils cloud-utils-growpart parted ruby rubygem-json sudo shadow-utils openssh-server open-vm-tools qemu-guest-agent} DEPENDS=${DEPENDS:-util-linux bash curl bind-utils cloud-utils-growpart parted ruby rubygem-json sudo shadow-utils openssh-server open-vm-tools qemu-guest-agent gawk}
PROVIDES=${PROVIDES:-} PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init} REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2} CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
@ -84,7 +84,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-.el7} RELSUFFIX=${RELSUFFIX:-.el7}
TYPE=${TYPE:-rpm} TYPE=${TYPE:-rpm}
TAGS=${TAGS:-rpm systemd ec2 network-scripts} TAGS=${TAGS:-rpm systemd ec2 network-scripts}
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils cloud-utils-growpart parted ruby rubygem-json sudo shadow-utils openssh-server} DEPENDS=${DEPENDS:-util-linux bash curl bind-utils cloud-utils-growpart parted ruby rubygem-json sudo shadow-utils openssh-server gawk}
PROVIDES=${PROVIDES:-} PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init} REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context} CONFLICTS=${CONFLICTS:-${REPLACES} one-context}
@ -99,7 +99,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-.el8} RELSUFFIX=${RELSUFFIX:-.el8}
TYPE=${TYPE:-rpm} TYPE=${TYPE:-rpm}
TAGS=${TAGS:-rpm systemd one network-scripts} TAGS=${TAGS:-rpm systemd one network-scripts}
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils cloud-utils-growpart parted ruby rubygem-json sudo shadow-utils openssh-server open-vm-tools qemu-guest-agent network-scripts} DEPENDS=${DEPENDS:-util-linux bash curl bind-utils cloud-utils-growpart parted ruby rubygem-json sudo shadow-utils openssh-server open-vm-tools qemu-guest-agent network-scripts gawk}
PROVIDES=${PROVIDES:-} PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init} REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2} CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
@ -114,7 +114,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-.el8} RELSUFFIX=${RELSUFFIX:-.el8}
TYPE=${TYPE:-rpm} TYPE=${TYPE:-rpm}
TAGS=${TAGS:-rpm systemd ec2 network-scripts} TAGS=${TAGS:-rpm systemd ec2 network-scripts}
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils cloud-utils-growpart parted ruby rubygem-json sudo shadow-utils openssh-server network-scripts} DEPENDS=${DEPENDS:-util-linux bash curl bind-utils cloud-utils-growpart parted ruby rubygem-json sudo shadow-utils openssh-server network-scripts gawk}
PROVIDES=${PROVIDES:-} PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init} REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context} CONFLICTS=${CONFLICTS:-${REPLACES} one-context}
@ -129,7 +129,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-alt} RELSUFFIX=${RELSUFFIX:-alt}
TYPE=${TYPE:-rpm} TYPE=${TYPE:-rpm}
TAGS=${TAGS:-rpm systemd one networkd} TAGS=${TAGS:-rpm systemd one networkd}
DEPENDS=${DEPENDS:-bind-utils btrfs-progs cloud-utils-growpart curl e2fsprogs iproute2 openssl parted passwd qemu-guest-agent open-vm-tools ruby-json-pure sudo systemd-services wget which xfsprogs} DEPENDS=${DEPENDS:-bind-utils btrfs-progs cloud-utils-growpart curl e2fsprogs iproute2 openssl parted passwd qemu-guest-agent open-vm-tools ruby-json-pure sudo systemd-services wget which xfsprogs gawk}
PROVIDES=${PROVIDES:-} PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init} REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2} CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
@ -145,7 +145,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-.suse} RELSUFFIX=${RELSUFFIX:-.suse}
TYPE=${TYPE:-rpm} TYPE=${TYPE:-rpm}
TAGS=${TAGS:-rpm systemd one network-scripts} TAGS=${TAGS:-rpm systemd one network-scripts}
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils growpart parted parted ruby sudo shadow openssh open-vm-tools qemu-guest-agent} # rubygem-json} DEPENDS=${DEPENDS:-util-linux bash curl bind-utils growpart parted parted ruby sudo shadow openssh open-vm-tools qemu-guest-agent gawk} # rubygem-json}
PROVIDES=${PROVIDES:-} PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init cloud-init-config-suse} REPLACES=${REPLACES:-cloud-init cloud-init-config-suse}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2} CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
@ -160,7 +160,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-.suse} RELSUFFIX=${RELSUFFIX:-.suse}
TYPE=${TYPE:-rpm} TYPE=${TYPE:-rpm}
TAGS=${TAGS:-rpm systemd ec2 network-scripts} TAGS=${TAGS:-rpm systemd ec2 network-scripts}
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils growpart parted ruby sudo shadow openssh} # rubygem-json} DEPENDS=${DEPENDS:-util-linux bash curl bind-utils growpart parted ruby sudo shadow openssh gawk} # rubygem-json}
PROVIDES=${PROVIDES:-} PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init cloud-init-config-suse} REPLACES=${REPLACES:-cloud-init cloud-init-config-suse}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context} CONFLICTS=${CONFLICTS:-${REPLACES} one-context}
@ -176,7 +176,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-} RELSUFFIX=${RELSUFFIX:-}
TYPE=${TYPE:-deb} TYPE=${TYPE:-deb}
TAGS=${TAGS:-deb sysv systemd upstart one} TAGS=${TAGS:-deb sysv systemd upstart one}
DEPENDS=${DEPENDS:-util-linux bash curl bind9-host cloud-utils parted ruby ifupdown|ifupdown2 acpid sudo passwd dbus openssh-server open-vm-tools qemu-guest-agent} DEPENDS=${DEPENDS:-util-linux bash curl bind9-host cloud-utils parted ruby ifupdown|ifupdown2 acpid sudo passwd dbus openssh-server open-vm-tools qemu-guest-agent gawk}
PROVIDES=${PROVIDES:-} PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init} REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2} CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
@ -191,7 +191,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-} RELSUFFIX=${RELSUFFIX:-}
TYPE=${TYPE:-deb} TYPE=${TYPE:-deb}
TAGS=${TAGS:-deb sysv systemd upstart ec2} TAGS=${TAGS:-deb sysv systemd upstart ec2}
DEPENDS=${DEPENDS:-util-linux bash curl bind9-host cloud-utils parted ruby ifupdown|ifupdown2 sudo passwd dbus openssh-server resolvconf} DEPENDS=${DEPENDS:-util-linux bash curl bind9-host cloud-utils parted ruby ifupdown|ifupdown2 sudo passwd dbus openssh-server resolvconf gawk}
PROVIDES=${PROVIDES:-} PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init} REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context} CONFLICTS=${CONFLICTS:-${REPLACES} one-context}
@ -206,7 +206,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-} RELSUFFIX=${RELSUFFIX:-}
TYPE=${TYPE:-apk} TYPE=${TYPE:-apk}
TAGS=${TAGS:-apk one} TAGS=${TAGS:-apk one}
DEPENDS=${DEPENDS:-util-linux bash curl udev sfdisk parted e2fsprogs-extra sudo shadow ruby ruby-json bind-tools openssh open-vm-tools qemu-guest-agent} DEPENDS=${DEPENDS:-util-linux bash curl udev sfdisk parted e2fsprogs-extra sudo shadow ruby ruby-json bind-tools openssh open-vm-tools qemu-guest-agent gawk}
PROVIDES=${PROVIDES:-} PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-} #not respected REPLACES=${REPLACES:-} #not respected
CONFLICTS=${CONFLICTS:-one-context-ec2} CONFLICTS=${CONFLICTS:-one-context-ec2}
@ -221,7 +221,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-} RELSUFFIX=${RELSUFFIX:-}
TYPE=${TYPE:-apk} TYPE=${TYPE:-apk}
TAGS=${TAGS:-apk ec2} TAGS=${TAGS:-apk ec2}
DEPENDS=${DEPENDS:-util-linux bash curl udev sfdisk parted e2fsprogs-extra sudo shadow ruby ruby-json bind-tools openssh} DEPENDS=${DEPENDS:-util-linux bash curl udev sfdisk parted e2fsprogs-extra sudo shadow ruby ruby-json bind-tools openssh gawk}
PROVIDES=${PROVIDES:-} PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-} #not respected REPLACES=${REPLACES:-} #not respected
CONFLICTS=${CONFLICTS:-one-context} CONFLICTS=${CONFLICTS:-one-context}
@ -243,7 +243,7 @@ case "${TARGET}" in
EXT=${EXT:-pkg.tar.xz} EXT=${EXT:-pkg.tar.xz}
TAGS=${TAGS:-arch systemd one networkd} TAGS=${TAGS:-arch systemd one networkd}
# mkinitcpio-growrootfs ruby-json # mkinitcpio-growrootfs ruby-json
DEPENDS=${DEPENDS:-filesystem util-linux bash curl bind-tools ruby sudo shadow open-vm-tools qemu-guest-agent} DEPENDS=${DEPENDS:-filesystem util-linux bash curl bind-tools ruby sudo shadow open-vm-tools qemu-guest-agent gawk}
PROVIDES=${PROVIDES:-} PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init} REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2} CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}

Loading…
Cancel
Save