blob: 353dc3a38c78de77dbbd13f045720a120b45fcdd (
plain) (
tree)
|
|
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd '../' && \
cd *'dnbd3-rootfs/scripts/rebash' && pwd)/core.sh"
core.import exceptions
core.import logging
check() {
local __doc__='
Checks whether needed assumptions are satisfied.
Example:
`check`
'
# Here we could build our package file.
# Tell dracut that this module should only be included if it is required
# explicitly.
return 255
}
depends() {
local __doc__='
Outputs all dependent dracut modules to make this module work.
>>> depends
+doc_test_contains
base
'
echo dnbd3-rootfs slx-tools
}
install() {
local __doc__='
Copies all needed files into the initramfs image and registers all needed
dracut hooks.
Example:
`install`
'
inst_hook pre-mount 20 "$moddir/hooks/fetch-config-tgz.sh"
inst_hook pre-pivot 20 "$moddir/hooks/unpack-config-tgz.sh"
inst_multiple tar mktemp gzip
}
|