Skip to content
Snippets Groups Projects
Commit a0945b95 authored by Pierre Kunzli's avatar Pierre Kunzli
Browse files

rename sda to nvme and put new vmlinuz with correct key mapping

parent 6fbdacc2
No related branches found
No related tags found
No related merge requests found
......@@ -365,7 +365,7 @@ ensure_mac_address() {
}
readonly mounting_point_remote="/bootiful/shared"
readonly deployment_disk="/dev/sda"
readonly deployment_disk="/dev/nvme0n1"
# Ensures the kernel is informed of the latest partition table changes
refresh_partition_table() {
......
......@@ -9,7 +9,7 @@ Usage:
$SCRIPT_DIR [-h | --help]
Description:
Saves a raw dd image of the /dev/sda device to the remote server shared images
Saves a raw dd image of the /dev/nvme0n1 device to the remote server shared images
folder.
Parameters:
......@@ -73,7 +73,7 @@ if ! mkdir "$image_folder"; then
fi
readonly image_file="$image_folder/$image_name.img.gz"
if ! pv --size "$image_size" --stop-at-size /dev/sda |
if ! pv --size "$image_size" --stop-at-size /dev/nvme0n1 |
pigz -c > "$image_file"
then
echo "Cannot create image file '$image_file'"
......@@ -88,7 +88,7 @@ if ! cat /proc/sys/kernel/random/uuid > "$md5_file"; then
fi
readonly partition_file="$image_folder/$image_name.partition"
if ! fdisk -l /dev/sda > "$partition_file"; then
if ! fdisk -l /dev/nvme0n1 > "$partition_file"; then
echo "Cannot create partition file $partition_file"
exit 1
fi
......
allow bootp;
subnet 192.168.56.0 netmask 255.255.255.0 {
range 192.168.56.10 192.168.56.80;
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.11 10.0.0.80;
default-lease-time 600;
max-lease-time 7200;
......@@ -10,8 +10,8 @@ subnet 192.168.56.0 netmask 255.255.255.0 {
class "pxeclient" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
next-server 192.168.56.100;
option tftp-server-name "192.168.56.100";
next-server 10.0.0.1;
option tftp-server-name "10.0.0.1";
if substring (option vendor-class-identifier, 15, 5) = "00000" {
option bootfile-name "/boot/grub/i386-pc/core.0";
......
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment