package for setting up some files in initramfs
This commit is contained in:
parent
47073f7c31
commit
f6ef263cc9
@ -0,0 +1,31 @@
|
||||
DESCRIPTION = ""
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
SECTION = ""
|
||||
DEPENDS = ""
|
||||
|
||||
SRC_URI = "file://initrd-release file://crypttab file://11-dm.rules"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${sysconfdir}
|
||||
install -m 644 ${WORKDIR}/initrd-release ${D}${sysconfdir}
|
||||
install -m 644 ${WORKDIR}/crypttab ${D}${sysconfdir}
|
||||
install -d ${D}${sysconfdir}/udev/rules.d
|
||||
install -m 644 ${WORKDIR}/11-dm.rules ${D}${sysconfdir}/udev/rules.d
|
||||
install -d ${D}/dev
|
||||
mknod -m 622 ${D}/dev/console c 5 1
|
||||
}
|
||||
|
||||
FILES_${PN} += "/dev/console"
|
||||
|
||||
pkg_postinst_${PN}() {
|
||||
ln -sf initrd-release $D${sysconfdir}/os-release
|
||||
#ln -s ${systemd_unitdir}/systemd $D/init
|
||||
ln -sf ${systemd_system_unitdir}/initrd.target $D${systemd_system_unitdir}/default.target
|
||||
rm -f $D${sysconfdir}/fstab
|
||||
> $D${sysconfdir}/fstab
|
||||
}
|
||||
|
||||
inherit allarch
|
@ -0,0 +1,5 @@
|
||||
SUBSYSTEM!="block", GOTO="dm_end"
|
||||
KERNEL!="dm-[0-9]*", GOTO="dm_end"
|
||||
ACTION!="add|change", GOTO="dm_end"
|
||||
OPTIONS+="db_persist"
|
||||
LABEL="dm_end"
|
@ -0,0 +1 @@
|
||||
luks UUID=683a17fc-4457-42cc-a946-cde67195a101
|
@ -0,0 +1,32 @@
|
||||
# This file is part of https://github.com/random-archer/mkinitcpio-systemd-tool
|
||||
|
||||
# Configure custom debug shell for initramfs
|
||||
|
||||
[Unit]
|
||||
Description=Initrd Debug Shell Service
|
||||
Documentation=https://github.com/random-archer/mkinitcpio-systemd-tool/blob/master/README.md
|
||||
ConditionPathExists=/etc/initrd-release
|
||||
ConditionPathExists=/dev/tty8
|
||||
DefaultDependencies=no
|
||||
IgnoreOnIsolate=yes
|
||||
|
||||
[Service]
|
||||
Environment=TERM=linux
|
||||
ExecStart=/bin/sh
|
||||
Restart=always
|
||||
RestartSec=3s
|
||||
StandardInput=tty
|
||||
TTYPath=/dev/tty8
|
||||
TTYReset=yes
|
||||
TTYVHangup=yes
|
||||
KillMode=process
|
||||
KillSignal=SIGTERM
|
||||
IgnoreSIGPIPE=no
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
|
||||
[X-SystemdTool]
|
||||
|
||||
# enable service
|
||||
InitrdService=enable
|
@ -0,0 +1,5 @@
|
||||
ID="citadel-distro"
|
||||
NAME="Subgraph OS Citadel"
|
||||
VERSION="1.0"
|
||||
VERSION_ID="1.0"
|
||||
PRETTY_NAME="Subgraph OS Citadel 1.0"
|
Loading…
Reference in New Issue
Block a user