Ruby gem version dependency hell (gettext 3.3.0)

$ /bin/bundle install –gemfile=ci/Gemfile Gem::InstallError: gettext requires Ruby version >= 2.5.0. An error occurred while installing gettext (3.3.0), and Bundler cannot continue. Make sure that `gem install gettext -v ‘3.3.0’` succeeds before bundling. TL;DR, this works – there’s another option which might work, see below, but I can’t be bothered to try. This is two […]

stash of /etc/os-release files

Which I use for bootstrapping puppet apply. Ubuntu 18.04 (symlink to /usr/lib/os-release) NAME=”Ubuntu” VERSION=”18.04.3 LTS (Bionic Beaver)” ID=ubuntu ID_LIKE=debian PRETTY_NAME=”Ubuntu 18.04.3 LTS” VERSION_ID=”18.04″ HOME_URL=”” SUPPORT_URL=”” BUG_REPORT_URL=”” PRIVACY_POLICY_URL=”” VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic Fedora 31 NAME=Fedora VERSION=”31 (Workstation Edition)” ID=fedora VERSION_ID=31 VERSION_CODENAME=”” PLATFORM_ID=”platform:f31″ PRETTY_NAME=”Fedora 31 (Workstation Edition)” ANSI_COLOR=”0;34″ LOGO=fedora-logo-icon CPE_NAME=”cpe:/o:fedoraproject:fedora:31″ HOME_URL=”” DOCUMENTATION_URL=”” SUPPORT_URL=”” BUG_REPORT_URL=”” REDHAT_BUGZILLA_PRODUCT=”Fedora” REDHAT_BUGZILLA_PRODUCT_VERSION=31 REDHAT_SUPPORT_PRODUCT=”Fedora” REDHAT_SUPPORT_PRODUCT_VERSION=31 PRIVACY_POLICY_URL=”” […]

systemctl mask failure

You cannot mask services defined in /etc/systemd/system. It relies on creating a symlink there with the same name as the file which defines the service. hat tip stack exchange From the big book of unhelpful error messages # /bin/systemctl mask gitlab-runner.service Failed to execute operation: Invalid argument # systemctl status gitlab-runner.service ● gitlab-runner.service – GitLab […]

Mount dependencies with systemd

Introduction: services that depend on NFS If a linux server boots and a block device isn’t available, it’ll drop into some sort of single-user mode. This was the way with init, and is the way with systemd. NFS, not so much. In my experience, systemd will start services implicitly dependent on an NFS mount the […]

heimdall on Centos7

You want to flash a Samsung Galaxy Android device. You’ll need heimdall. It’s not available as a package for Centos7, so you’ll need to compile it. Expanded instructions It uses cmake, which I’d not tripped over before, and the build process is a good deal messier than I expected. As in literally, it leaves stuff […]

A real corrupted file?

The file got corrupted is usually a shortcut for .. something changed it. I’ve never really seen files get corrupted without good reason .. like a hardware fault or unexpected powerdown. And the corruption wouldn’t have any sort of random consistency to it. Update 2019-12-22: Another Puppet related file got damaged. I suspect this hard […]

OEM support for Linux (firmware updates)

Ubuntu 18.04 and Centos 7.6 both run the fwupd service. This polls for updates on supported hardware. Support arrived in 16.04 and 7.4 respectively (from the docs.) hat tip Check the daemon’s status with the following; problems with any plugins are noted in the logs. systemctl status fwupd On ubuntu 18.04 updates are via the […]

wiping disks

One of the GNU core utilities is the shred command. On both Ubuntu and RHEL/Centos it comes in the coreutils package, and even on a minimal install, I suspect you can count on it being there. # fdisk -l /dev/sda | head -1 Disk /dev/sda: 6 GiB, 6448619520 bytes, 12594960 sectors # shred –iterations=0 –zero […]

fun with ruby in containers

This is related to the various posts tagged gitlab-runner. I got puppet linting, syntax checking etc. is working via the GitLab runner shell executor, and the next step was to move it into containers. There be dragons, and they didn’t google very well, so here goes. I’m using a Red Hat UBI Ruby 2.5 container […]