hass + ethtool

This commit is contained in:
Motiejus Jakštys 2021-05-24 00:11:58 +03:00
parent 6a765787a5
commit e39f7c712a

View File

@ -61,7 +61,7 @@ def _lxcconfig_impl(ctx):
runfiles = ctx.runfiles(files = ctx.files.src), runfiles = ctx.runfiles(files = ctx.files.src),
) )
def lxcbundle(name, src, version = ""): def lxcbundle(name, src, version):
rootfsname = name + "/_/rootfs" rootfsname = name + "/_/rootfs"
rootfs(name = rootfsname, src = src, out = rootfsname + ".tar") rootfs(name = rootfsname, src = src, out = rootfsname + ".tar")
lxcconfig(name, src = src, out = name + "/_/meta.tar.xz") lxcconfig(name, src = src, out = name + "/_/meta.tar.xz")
@ -72,10 +72,7 @@ def lxcbundle(name, src, version = ""):
cmd = "xz -T0 -f $< > $@", cmd = "xz -T0 -f $< > $@",
message = "XZ", message = "XZ",
) )
if version: outname = "{}.{}.tar".format(name, version)
outname = "{}_{}.tar".format(name, version)
else:
outname = "{}.tar".format(name)
pkg_tar( pkg_tar(
name = name, name = name,
srcs = [ srcs = [