summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/cobbler/snippets/restore_boot_device
blob: 1b54e1f425e1b8a697cd740e7c29acc5a5145f32 (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