Cleanup old, unused structures
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
text
|
||||
|
||||
%include /tmp/packer_ks/fedora/f34/fedora-cloud-base-vagrant.ks
|
||||
|
||||
%pre --interpreter /bin/bash --log /tmp/greg
|
||||
cmdline=$(cat /proc/cmdline)
|
||||
ks=$(printf "${cmdline}" | sed -E -e 's/.*inst\.ks=([^ ]*).*/\1/')
|
||||
mkdir -p /tmp/packer_ks
|
||||
cd /tmp/packer_ks
|
||||
wget -m -nH "$(dirname "${ks}")"
|
||||
|
||||
if [ ! -e /dev/vda ]; then
|
||||
ln -s /dev/sda /dev/vda
|
||||
fi
|
||||
%end
|
||||
Reference in New Issue
Block a user