mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-27 00:21:44 +02:00
Merge pull request #1730 from flatcar/jepio/btrfs-opt
Mount btrfs fs with rescue= option
This commit is contained in:
commit
61c3af32fa
@ -603,7 +603,7 @@ def Mount(options):
|
|||||||
if options.read_only or ('verity' in mount.get('features', []) and not options.writable_verity):
|
if options.read_only or ('verity' in mount.get('features', []) and not options.writable_verity):
|
||||||
mount_opts.append('ro')
|
mount_opts.append('ro')
|
||||||
if mount.get('fs_type', None) == 'btrfs':
|
if mount.get('fs_type', None) == 'btrfs':
|
||||||
mount_opts.append('norecovery')
|
mount_opts.append('rescue=nologreplay')
|
||||||
|
|
||||||
if mount.get('fs_subvolume', None):
|
if mount.get('fs_subvolume', None):
|
||||||
mount_opts.append('subvol=%s' % mount['fs_subvolume'])
|
mount_opts.append('subvol=%s' % mount['fs_subvolume'])
|
||||||
|
@ -8,7 +8,7 @@ CROS_WORKON_REPO="https://github.com"
|
|||||||
if [[ "${PV}" == 9999 ]]; then
|
if [[ "${PV}" == 9999 ]]; then
|
||||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||||
else
|
else
|
||||||
CROS_WORKON_COMMIT="f627c4def9ff42cc6bf4b04cf211e11a42b34f31" # flatcar-master
|
CROS_WORKON_COMMIT="541576a4dcd56397597abef7d9ce4c539631ed65" # flatcar-master
|
||||||
KEYWORDS="amd64 arm64"
|
KEYWORDS="amd64 arm64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user