grub2/80_suse_btrfs_snapshot
Marcus Meissner fcbf2cb71b Accepting request 253157 from home:michael-chang:branches:Base:System
- packaging 20_memtest86+ and 20_ppc_terminfo in corresponing grubarch
  package

- Add '80_suse_btrfs_snapshot' required to show btrfs snapshots inside
  of the boot menu.

OBS-URL: https://build.opensuse.org/request/show/253157
OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=121
2014-10-01 07:24:29 +00:00

11 lines
224 B
Bash

#! /bin/sh
set -e
if [ "x${SUSE_BTRFS_SNAPSHOT_BOOTING}" = "xtrue" ] &&
[ "x${GRUB_FS}" = "xbtrfs" ] ; then
cat <<EOF
if [ -f "/.snapshots/grub-snapshot.cfg" ]; then
source "/.snapshots/grub-snapshot.cfg"
fi
EOF
fi