summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/cobbler/snippets/restore_boot_device
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters/cobbler/snippets/restore_boot_device')
-rw-r--r--deploy/adapters/cobbler/snippets/restore_boot_device6
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy/adapters/cobbler/snippets/restore_boot_device b/deploy/adapters/cobbler/snippets/restore_boot_device
new file mode 100644
index 00000000..5baa801e
--- /dev/null
+++ b/deploy/adapters/cobbler/snippets/restore_boot_device
@@ -0,0 +1,6 @@
+if [ "$os_version" == "sles11" ]; then
+ nvsetenv boot-device "$(cat /root/inst-sys/boot-device.bak)"
+elif [ "$os_version" == "fedora17" ]; then
+ # must be run from a %post --nochroot section
+ nvsetenv boot-device "$(cat /tmp/boot-device.bak)"
+fi