diff --git a/alpine.lua b/alpine.lua index 685795a..6c4372f 100644 --- a/alpine.lua +++ b/alpine.lua @@ -99,12 +99,8 @@ function alpine.make_world(rootfs_path, packages) utils.join_table(packages, "\n")) if err then return err end - local status = os.execute("sudo apk update --no-cache --root "..rootfs_path) - if not (status == 0) then return status end local status = os.execute("sudo apk upgrade --clean-protected --no-cache --root "..rootfs_path) if not (status == 0) then return status end - local status = os.execute("sudo apk add --clean-protected --no-cache --root "..rootfs_path) - if not (status == 0) then return status end end -- Returns nil when no failure, otherwise status code