Skip to content

Commit

Permalink
[antlir2] package: allow selector for BtrfsSubvol
Browse files Browse the repository at this point in the history
Summary:
For default VM, the layer target is going to change based on arch when
constructing the disk. Allow selector.

Test Plan: CI. Boot VM with BtrfsSubvol (V0.16)

Reviewed By: sergeyfd

Differential Revision: D47570798

fbshipit-source-id: 9a5d945d8e0a6201d1f8a64679c15d1cb59f5009
  • Loading branch information
wujj123456 authored and facebook-github-bot committed Jul 19, 2023
1 parent e34a705 commit 5b19abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion antlir/antlir2/bzl/package/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ _package = rule(
_package_macro = rule_with_default_target_platform(_package)

def BtrfsSubvol(
layer: str.type,
layer: [str.type, "selector"],
writable: [bool.type, None] = None):
return {
"layer": layer,
Expand Down

0 comments on commit 5b19abf

Please sign in to comment.