# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
if [[ -f /etc/machine-id ]]; then
read MACHINE_ID < /etc/machine-id
if ! [[ $MACHINE_ID ]]; then
BOOT_DIR="/$MACHINE_ID/$KERNEL_VERSION"
LOADER_ENTRY="/boot/loader/entries/$MACHINE_ID-$KERNEL_VERSION.conf"
if [[ $COMMAND == remove ]]; then
exec rm -f "$LOADER_ENTRY"
if ! [[ $COMMAND == add ]]; then
if ! [[ $KERNEL_IMAGE ]]; then
if [[ -f /etc/os-release ]]; then
elif [[ -f /usr/lib/os-release ]]; then
if ! [[ $PRETTY_NAME ]]; then
PRETTY_NAME="Linux $KERNEL_VERSION"