1 |
commit: 684e165fbf91e848a73127cdd7e8be96b6bc0eb3 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 27 22:58:08 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 28 13:45:37 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=684e165f |
7 |
|
8 |
gen_initramfs.sh: append_base_layout(): move /run/utmp to /var/run/utmp |
9 |
|
10 |
Will fix |
11 |
|
12 |
syslogin_perform_logout: logout(pts/0) returned an error: No such file or directory |
13 |
|
14 |
error logged by dropbear. |
15 |
|
16 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
17 |
|
18 |
gen_initramfs.sh | 4 ++-- |
19 |
1 file changed, 2 insertions(+), 2 deletions(-) |
20 |
|
21 |
diff --git a/gen_initramfs.sh b/gen_initramfs.sh |
22 |
index 5bee813..875068c 100755 |
23 |
--- a/gen_initramfs.sh |
24 |
+++ b/gen_initramfs.sh |
25 |
@@ -429,8 +429,8 @@ append_base_layout() { |
26 |
dd if=/dev/zero of="${TDIR}/var/log/wtmp" bs=1 count=0 seek=0 &>/dev/null \ |
27 |
|| die "Failed to create '${TDIR}/var/log/wtmp'!" |
28 |
|
29 |
- dd if=/dev/zero of="${TDIR}/run/utmp" bs=1 count=0 seek=0 &>/dev/null \ |
30 |
- || die "Failed to create '${TDIR}/run/utmp'!" |
31 |
+ dd if=/dev/zero of="${TDIR}/var/run/utmp" bs=1 count=0 seek=0 &>/dev/null \ |
32 |
+ || die "Failed to create '${TDIR}/var/run/utmp'!" |
33 |
|
34 |
cd "${TDIR}" || gen_die "Failed to chdir to '${TDIR}'!" |
35 |
log_future_cpio_content |