mirror of https://schlomp.space/tastytea/hashboot
Cleaned up documentation, deleted ebuild.
parent
2c53efb7de
commit
ee2d3c92ab
18
INSTALL
18
INSTALL
|
@ -1,18 +0,0 @@
|
|||
* Make hashboot executable
|
||||
* Place hashboot anywhere in $PATH
|
||||
* Install the appropriate init script
|
||||
* If applicable, copy kernel-hook to /etc/kernel/post{inst,rm}.d/zzz-hashboot (make sure it is called after all other hooks)
|
||||
|
||||
VERIFIED TO WORK ON:
|
||||
* Gentoo (as of 2015/10)
|
||||
* Arch (as of 2015/10)
|
||||
|
||||
SHOULD WORK ON:
|
||||
* Systems with systemd init system
|
||||
* Systems with openrc init system
|
||||
* Systems with system v init system
|
||||
|
||||
WORKS NOT ON:
|
||||
* Ubuntu 14.04 (initscript.sysv doesn't interrupt boot process)
|
||||
* Systems with boot splash (I think)
|
||||
* Systems with openrc/sysv-init and parallel boot
|
17
README
17
README
|
@ -1,17 +0,0 @@
|
|||
"THE HUG-WARE LICENSE" (Revision 1):
|
||||
xo <xo@rotce.de> and tastytea <tastytea@tastytea.de> wrote these files. As long
|
||||
as you retain this notice you can do whatever you want with this stuff. If we
|
||||
meet some day, and you think this stuff is worth it, you can give us a hug.
|
||||
|
||||
|
||||
For build instruction see INSTALL.
|
||||
|
||||
Run "hashboot index" to generate checksums and a backup for /boot and MBR
|
||||
Run "hashboot check" to check /boot and MBR
|
||||
Run "hashboot recover" to replace corrupted files with the backup
|
||||
|
||||
A backup is per default stored in /var/cache/bootbackup.tar.gz
|
||||
|
||||
You can't use the openrc/sysv init scripts with parallel boot.
|
||||
|
||||
Detailed documentation is in the sourcecode.
|
30
README.md
30
README.md
|
@ -1,31 +1,31 @@
|
|||
**hashboot** hashes all files in `/boot` to check them during early boot. It is
|
||||
intended for when you have encrypted the root partition but not the boot
|
||||
partition. The checksums are stored in `/var/lib/hashboot.digest` and a backup
|
||||
of the contents of `/boot` is stored in `/var/cache/boot-backup.tar`. If a
|
||||
checksum doesn't match, you have the option to restore the file from backup.
|
||||
|
||||
# License
|
||||
"THE HUG-WARE LICENSE" (Revision 1):
|
||||
xo <xo@rotce.de> and tastytea <tastytea@tastytea.de> wrote these files. As long
|
||||
as you retain this notice you can do whatever you want with this stuff. If we
|
||||
meet some day, and you think this stuff is worth it, you can give us a hug.
|
||||
|
||||
partition. The checksums and a backup of the contents of `/boot` are stored in
|
||||
`/var/lib/hashboot` by default. If a checksum doesn't match, you have the option
|
||||
to restore the file from backup.
|
||||
|
||||
# Install
|
||||
|
||||
* Make hashboot executable
|
||||
* Place hashboot anywhere in $PATH
|
||||
* Install the appropriate init script
|
||||
* If applicable, copy kernel-hook to /etc/kernel/post{inst,rm}.d/zzz-hashboot (make sure it is called after all other hooks)
|
||||
|
||||
Also see [INSTALL](https://git.tastytea.de/?p=hashboot.git;a=blob_plain;f=INSTALL).
|
||||
|
||||
|
||||
# Usage
|
||||
|
||||
* Run "hashboot index" to generate checksums and a backup for /boot and MBR
|
||||
* Run "hashboot check" to check /boot and MBR
|
||||
* Run "hashboot recover" to replace corrupted files with the backup
|
||||
|
||||
|
||||
# Notes
|
||||
* A backup is per default stored in /var/cache/bootbackup.tar.gz
|
||||
|
||||
* You can't use the openrc/sysv init scripts with parallel boot.
|
||||
|
||||
# License
|
||||
|
||||
```PLAIN
|
||||
"THE HUG-WARE LICENSE" (Revision 1):
|
||||
xo <xo@rotce.de> and tastytea <tastytea@tastytea.de> wrote these files. As long
|
||||
as you retain this notice you can do whatever you want with this stuff. If we
|
||||
meet some day, and you think this stuff is worth it, you can give us a hug.
|
||||
```
|
||||
|
|
4
TODO
4
TODO
|
@ -1,4 +0,0 @@
|
|||
* Debian package
|
||||
* Ubuntu package
|
||||
* Debian and Ubuntu repositories
|
||||
* Make Ubuntu 14.04 initscript work
|
|
@ -1,53 +0,0 @@
|
|||
EAPI="4"
|
||||
|
||||
EGIT_REPO_URI="https://github.com/tastytea/hashboot.git"
|
||||
|
||||
inherit eutils git-2
|
||||
|
||||
DESCRIPTION="Check integrity of files in /boot"
|
||||
HOMEPAGE="https://git.tastytea.de/?p=hashboot.git"
|
||||
LICENSE="hug-ware"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
sys-apps/coreutils
|
||||
app-arch/tar
|
||||
sys-apps/findutils
|
||||
sys-apps/grep
|
||||
virtual/awk
|
||||
app-shells/bash
|
||||
sys-apps/util-linux
|
||||
sys-apps/diffutils
|
||||
sys-apps/sed
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
"
|
||||
PDEPEND="
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
git-2_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if grep -q '^rc_parallel="YES"' /etc/rc.conf
|
||||
then
|
||||
ewarn "hashboot does not work properly with parallel boot enabled."
|
||||
fi
|
||||
|
||||
mkdir init
|
||||
mv initscript.openrc init/hashboot
|
||||
mv LICENSE HUG-WARE
|
||||
}
|
||||
|
||||
|
||||
src_install() {
|
||||
dodoc README
|
||||
insinto /usr/portage/licenses
|
||||
doins HUG-WARE
|
||||
|
||||
dobin hashboot
|
||||
doinitd init/hashboot
|
||||
}
|
Loading…
Reference in New Issue