summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/cobbler/snippets/save_boot_device
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters/cobbler/snippets/save_boot_device')
-rw-r--r--deploy/adapters/cobbler/snippets/save_boot_device5
1 files changed, 5 insertions, 0 deletions
diff --git a/deploy/adapters/cobbler/snippets/save_boot_device b/deploy/adapters/cobbler/snippets/save_boot_device
new file mode 100644
index 00000000..72f97d2e
--- /dev/null
+++ b/deploy/adapters/cobbler/snippets/save_boot_device
@@ -0,0 +1,5 @@
+if [ "$os_version" == "sles11" ]; then
+ nvram --print-config=boot-device > /root/boot-device.bak
+elif [ "$os_version" == "fedora17" ]; then
+ nvram --print-config=boot-device > /tmp/boot-device.bak
+fi