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
Branches
No related tags found
No related merge requests found
...@@ -365,7 +365,7 @@ ensure_mac_address() { ...@@ -365,7 +365,7 @@ ensure_mac_address() {
} }
readonly mounting_point_remote="/bootiful/shared" 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 # Ensures the kernel is informed of the latest partition table changes
refresh_partition_table() { refresh_partition_table() {
...@@ -645,4 +645,4 @@ create_hidden_partition() { ...@@ -645,4 +645,4 @@ create_hidden_partition() {
echo "File system in hidden partition created." echo "File system in hidden partition created."
refresh_partition_table refresh_partition_table
} }
\ No newline at end of file
...@@ -9,7 +9,7 @@ Usage: ...@@ -9,7 +9,7 @@ Usage:
$SCRIPT_DIR [-h | --help] $SCRIPT_DIR [-h | --help]
Description: 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. folder.
Parameters: Parameters:
...@@ -73,7 +73,7 @@ if ! mkdir "$image_folder"; then ...@@ -73,7 +73,7 @@ if ! mkdir "$image_folder"; then
fi fi
readonly image_file="$image_folder/$image_name.img.gz" 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" pigz -c > "$image_file"
then then
echo "Cannot create image file '$image_file'" echo "Cannot create image file '$image_file'"
...@@ -88,7 +88,7 @@ if ! cat /proc/sys/kernel/random/uuid > "$md5_file"; then ...@@ -88,7 +88,7 @@ if ! cat /proc/sys/kernel/random/uuid > "$md5_file"; then
fi fi
readonly partition_file="$image_folder/$image_name.partition" 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" echo "Cannot create partition file $partition_file"
exit 1 exit 1
fi fi
......
allow bootp; allow bootp;
subnet 192.168.56.0 netmask 255.255.255.0 { subnet 10.0.0.0 netmask 255.255.255.0 {
range 192.168.56.10 192.168.56.80; range 10.0.0.11 10.0.0.80;
default-lease-time 600; default-lease-time 600;
max-lease-time 7200; max-lease-time 7200;
...@@ -10,8 +10,8 @@ subnet 192.168.56.0 netmask 255.255.255.0 { ...@@ -10,8 +10,8 @@ subnet 192.168.56.0 netmask 255.255.255.0 {
class "pxeclient" { class "pxeclient" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient"; match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
next-server 192.168.56.100; next-server 10.0.0.1;
option tftp-server-name "192.168.56.100"; option tftp-server-name "10.0.0.1";
if substring (option vendor-class-identifier, 15, 5) = "00000" { if substring (option vendor-class-identifier, 15, 5) = "00000" {
option bootfile-name "/boot/grub/i386-pc/core.0"; 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