Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
Photo, no description
Photo, no description
Italo-Disco In The Mix Vol. 40 von mir gemixt..
pdl screenshot
Photo, no description
Debian GNU/Linux 13.8
Photo, no description
Photo, no description
Falla NoisyTCP nel kernel Linux
screenshot of this source code:


@task
def unattended_upgrades(
    con: Context, force: bool = False, yubikey: bool = True
) -> None:
    """run unattended-upgrades everywhere

    This runs unattended-upgrade *everywhere* on the fleet, just the
    right way. In particular, it runs the needrestart metrics so that
    those are properly updated.

    It also disables the yubikey touch to streamline the process.
    """
    ui.assert_localhost(con)

    if yubikey:
        logging.info(
            "checking YubiKey touch configuration (disable with --no-yubikey)..."
        )
        ret = con.run("ykman openpgp keys info aut", hide=True, warn=True)
        if not ret or ret.failed:
            if ret:
                print(ret.stderr)
            logging.warning("could not run ykman, ignoring")
        else:
            if "touch policy: off" in ret.stdout.lower():
                logging.info("touch already disabled")
            else:
                ret = con.run(
                    "ykman openpgp keys set-touch aut off",
                    pty=True,
                    echo=True,
                    warn=True,
                )
                if not ret or ret.failed:
                    logging.warning("could not disable touch")
                else:
                    logging.info("touch disabled")

    logging.info("running %supgrade everywhere", "forced " if force else "")
    if force:
        upgrade_command = "apt upgrade -yy"
    else:
        upgrade_command = "unattended-upgrades -v"
    con.run(
        f"cumin --config ~/.config/cumin/config.yaml -b 10 -p 10 '*' 'apt-get update && {upgrade_command} && systemctl start tpa-needrestart-prometheus-metrics.service'",  # noqa: E501
        echo=True,
        pty=True,
        replace_env=False,
        warn=True,
    )

    if yubikey:
        logging.info("reseting YubiKey to cached")
        con.run(
            "ykman openpgp keys set-touch aut cached", pty=True, echo=True, warn=True
        )

    logging.info("all done")
Photo, no description
zuerich zuricum turicum x100f fujifilm photography flower-power widerstand resistance blume flower fleur macht power pouvoir altstetten kreis9
Debian Gaming Hardware Team alakult
Photo, no description
zuerich zuricum turicum x100f fujifilm photography roentgenstrasse schilf reed roseau kreis5
Photo, no description
Photo, no description
Screenshot of Linux-AI Neveah on LG Gram with terminal open and fastfetch displayed
Load more