PDA

View Full Version : Creating an Initial System to Deploy a Preload Image



sibaro22
04-Oct-2016, 21:31
I'm creating my PXE boot server for a mass deploy of SLED 12. I have already set up my server with dhcp server, tftp server and installation server to do this Job. I create a SLED .raw image on suse studio and i'm setting up some parameters for first boot installation.

In web page documentation there is a reference to a script that I have to edit run_all.sh after copy my initrd, to call the preload image that I want to use. But I can't find this script !

Anyone know why?


URL: https://www.suse.com/documentation/sled-12/book_sle_deployment/data/sec_autokiwi_pxe.html

Unpack the previously copied initial RAM file system with the command:

zcat ../initrd | cpio -i
Edit the file run_all.sh.

Search for the following line, delete it and the rest of the file:

[ "$debug" ] && echo preping 21-nfs.sh
Add the following lines to the end of the files run_all.sh:

[ "$debug" ] && echo preping 92-install.sh
[ "$debug" ] && echo running 92-install.sh
source boot/92-install.sh
[ "$modules" ] && load_modules

Create a new script boot/92-install.sh with the following content:

#!/bin/bash
if [ "$(get_param rawimage)" ]; then
rawimage=$(get_param rawimage)
if [ "$(get_param rawdevice)" ]; then
rawdevice=$(get_param rawdevice)
echo "wget -O ${rawdevice} ${rawimage}"
wget -O ${rawdevice} ${rawimage}
sync
sleep 5
echo "DONE"
fi
fi
# /bin/bash
/bin/poweroff -f

Automatic Reply
10-Oct-2016, 05:30
sibaro22,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue
is urgent or not getting a response, you might try one of the following options:

- Visit http://www.suse.com/support and search the knowledgebase and/or check all
the other support options available.
- Open a service request: https://www.suse.com/support
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.suse.com)

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.suse.com/faq.php

If this is a reply to a duplicate posting or otherwise posted in error, please
ignore and accept our apologies and rest assured we will issue a stern reprimand
to our posting bot..

Good luck!

Your SUSE Forums Team
http://forums.suse.com