i don't think we need this
This commit is contained in:
parent
cafd04f6d0
commit
e5d247357e
32
config.sh
32
config.sh
@ -491,38 +491,6 @@ LSBwb3dlci1zdGF0ZS1jaGFuZ2UKCg=="
|
||||
|
||||
# Remove system.devices because Oracle does things.
|
||||
rm -fv /etc/lvm/devices/system.devices
|
||||
|
||||
# Copyright (C) 2020 Oracle Corp., Inc. All rights reserved.
|
||||
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl
|
||||
#
|
||||
# /usr/lib/oci-linux-config/cloud/scripts/initramfs-mod/net.sh
|
||||
#
|
||||
|
||||
echo "$(date) - OCI initramfs network modification script started."
|
||||
# Symlink network config files where cloud-init >= 19.4 expects them
|
||||
DRACUT_CFG=/run/initramfs/state/etc/sysconfig/network-scripts
|
||||
CI_DIR=/run
|
||||
if [ -d $DRACUT_CFG ]; then
|
||||
FILE_COUNT=`ls $DRACUT_CFG | wc -l`
|
||||
if [ $FILE_COUNT -eq 0 ]; then
|
||||
# Create dummy file if dracut did not create network device config
|
||||
dummycfg=$CI_DIR/net-dummy.conf
|
||||
echo "DEVICE=\"dummy\"" > $dummycfg
|
||||
echo "BOOTPROTO=dhcp" >> $dummycfg
|
||||
echo "$(date) - Creating dummy config $dummycfg."
|
||||
else
|
||||
for dcfg in $DRACUT_CFG/*; do
|
||||
filename=${dcfg##*/}
|
||||
devname=${filename##ifcfg-}
|
||||
cicfg=$CI_DIR/net-$devname.conf
|
||||
if [ ! -e $cicfg ]; then
|
||||
echo "$(date) - Creating symlink from $dcfg to $cicfg."
|
||||
ln -s $dcfg $cicfg
|
||||
fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
echo "$(date) - OCI initramfs network modification script done."
|
||||
}
|
||||
|
||||
function cloud_cleanup_steps() {
|
||||
|
Loading…
Reference in New Issue
Block a user