summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/cobbler/snippets/restore_boot_device
blob: 5baa801efdd339f705d867d76b81df89367e2cd6 (plain)
1
2
3
4
5
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