| 1 |
#!/bin/bash |
| 2 |
# SPDX-License-Identifier: GPL-2.0-or-later |
| 3 |
# Copyright (C) 2023 Canonical Ltd |
| 4 |
# Author: Isaac True <[email protected]> |
| 5 |
# |
| 6 |
# This file is part of kiwi. |
| 7 |
# |
| 8 |
# kiwi is free software: you can redistribute it and/or modify |
| 9 |
# it under the terms of the GNU General Public License as published by |
| 10 |
# the Free Software Foundation, either version 3 of the License, or |
| 11 |
# (at your option) any later version. |
| 12 |
# |
| 13 |
# kiwi is distributed in the hope that it will be useful, |
| 14 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
# GNU General Public License for more details. |
| 17 |
# |
| 18 |
# You should have received a copy of the GNU General Public License |
| 19 |
# along with kiwi. If not, see <http://www.gnu.org/licenses/> |
| 20 |
# |
| 21 |
declare moddir=${moddir} |
| 22 |
|
| 23 |
check() { |
| 24 |
require_binaries /usr/bin/kiwi-parse-verity || return 1 |
| 25 |
require_binaries /usr/sbin/veritysetup || return 1 |
| 26 |
} |
| 27 |
|
| 28 |
depends() { |
| 29 |
return 0 |
| 30 |
} |
| 31 |
|
| 32 |
install() { |
| 33 |
inst_multiple \ |
| 34 |
/usr/bin/kiwi-parse-verity \ |
| 35 |
/usr/sbin/veritysetup \ |
| 36 |
cut \ |
| 37 |
tr |
| 38 |
inst_hook initqueue/settled 70 "$moddir/kiwi-verity-setup.sh" |
| 39 |
inst_hook initqueue/settled 71 "$moddir/kiwi-veritytab-setup.sh" |
| 40 |
} |