Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:GA
grub2.13272
80_suse_btrfs_snapshot
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 80_suse_btrfs_snapshot of Package grub2.13272
#! /bin/sh set -e SNAPSHOTS="/.snapshots" if [ "x${SUSE_BTRFS_SNAPSHOT_BOOTING}" = "xtrue" ] && [ "x${GRUB_FS}" = "xbtrfs" ] && [ -d "${SNAPSHOTS}" ]; then SNAPSHOT_RID=`btrfs inspect-internal rootid ${SNAPSHOTS}` ROOT_RID=`btrfs inspect-internal rootid /` if [ -n "${SNAPSHOT_RID}" -a "${SNAPSHOT_RID}" != "${ROOT_RID}" ]; then SNAPSHOT_SUBVOL=`btrfs inspect-internal subvolid-resolve ${SNAPSHOT_RID} /` ROOT_SUBVOL=`btrfs inspect-internal subvolid-resolve ${ROOT_RID} /` INODE=`stat -c '%i' ${SNAPSHOTS}` if [ "x${INODE}" = "x256" -a "x${ROOT_SUBVOL}${SNAPSHOTS}" != "x${SNAPSHOT_SUBVOL}" ]; then echo "btrfs-mount-subvol (\$root) ${SNAPSHOTS} ${SNAPSHOT_SUBVOL}" fi fi cat <<EOF if [ -f "${SNAPSHOTS}/grub-snapshot.cfg" ]; then source "${SNAPSHOTS}/grub-snapshot.cfg" fi EOF fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor