From b9d8ccd965a6593f2439ccd27f0bf0e2ef168448 Mon Sep 17 00:00:00 2001 From: Denis Pynkin <denis.pynkin@collabora.com> Date: Wed, 20 Feb 2019 01:54:13 +0300 Subject: [PATCH] Add utilities for ostree-based rootfs check Need to include `fsck` and `fsck.ext4` utils explicitly since there is no image and partitioning during `ostree-commit` recipe to trigger the default mechanism provided by `mkinitramfs` scripts. Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com> --- .../usr/share/initramfs-tools/hooks/rootfsck | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 overlays/ostree/usr/share/initramfs-tools/hooks/rootfsck diff --git a/overlays/ostree/usr/share/initramfs-tools/hooks/rootfsck b/overlays/ostree/usr/share/initramfs-tools/hooks/rootfsck new file mode 100755 index 00000000..f0f2b8b7 --- /dev/null +++ b/overlays/ostree/usr/share/initramfs-tools/hooks/rootfsck @@ -0,0 +1,23 @@ +#!/bin/sh + +# Copy utilities for root filesystem check in initramfs + +PREREQ="" + +prereqs() +{ + echo "$PREREQ" +} + +case $1 in +prereqs) + prereqs + exit 0 + ;; +esac + +. /usr/share/initramfs-tools/hook-functions + +copy_exec /sbin/fsck +copy_exec /sbin/logsave +copy_exec /sbin/fsck.ext4 -- GitLab