Skip to content

Commit

Permalink
Merge pull request #197 from simondeziel/no-shiftfs-latest-candidate
Browse files Browse the repository at this point in the history
Drop `shiftfs.enable` configuration key (latest-candidate)
  • Loading branch information
tomponline authored Nov 20, 2023
2 parents aeba916 + 04091ed commit cfec05b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ description: |-
- openvswitch.builtin: Run a snap-specific OVS daemon [default=false]
- openvswitch.external: Use the system's OVS tools (ignores openvswitch.builtin) [default=false]
- ovn.builtin: Use snap-specific OVN configuration [default=false]
- shiftfs.enable: Enable shiftfs support [default=auto]
- ui.enable: Enable the experimental web interface [default=false]

For system-wide configuration of the CLI, place your configuration in
Expand Down
12 changes: 0 additions & 12 deletions snapcraft/commands/daemon.start
Original file line number Diff line number Diff line change
Expand Up @@ -459,18 +459,6 @@ fi
echo "==> Exposing LXD documentation"
export LXD_DOCUMENTATION="${SNAP_CURRENT}/share/lxd-documentation"

# Setup shiftfs
if [ "${shiftfs_enable:-"auto"}" = "auto" ]; then
echo "==> Disabling shiftfs on this kernel (auto)"
shiftfs_enable="false"
elif [ "${shiftfs_enable:-"auto"}" = "false" ]; then
echo "==> Disabling shiftfs at user request"
fi

if [ "${shiftfs_enable:-"auto"}" = "false" ]; then
export LXD_SHIFTFS_DISABLE=true
fi

# LXC
## Host specific overrides
mkdir -p "${SNAP_COMMON}/lxc"
Expand Down
2 changes: 0 additions & 2 deletions snapcraft/hooks/configure
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ lxcfs_debug=$(get_bool "$(snapctl get lxcfs.debug)")
openvswitch_builtin=$(get_bool "$(snapctl get openvswitch.builtin)")
openvswitch_external=$(get_bool "$(snapctl get openvswitch.external)")
ovn_builtin=$(get_bool "$(snapctl get ovn.builtin)")
shiftfs_enable=$(get_bool "$(snapctl get shiftfs.enable)")
ui_enable=$(get_bool "$(snapctl get ui.enable)")

# Special-handling of daemon.preseed
Expand Down Expand Up @@ -85,7 +84,6 @@ config="${SNAP_COMMON}/config"
echo "openvswitch_builtin=${openvswitch_builtin:-"false"}"
echo "openvswitch_external=${openvswitch_external:-"false"}"
echo "ovn_builtin=${ovn_builtin:-"false"}"
echo "shiftfs_enable=${shiftfs_enable:-"auto"}"
echo "ui_enable=${ui_enable:-"false"}"
} > "${config}"

Expand Down

0 comments on commit cfec05b

Please sign in to comment.