mirror of
https://github.com/FUjr/gl-infra-builder.git
synced 2025-12-17 01:25:25 +00:00
25 lines
812 B
Diff
25 lines
812 B
Diff
From 0cc3433812dc4132876ae4edd930bec97bd6308c Mon Sep 17 00:00:00 2001
|
|
From: gl-dengxinfa <xinfa.deng@gl-inet.com>
|
|
Date: Wed, 28 Sep 2022 17:13:22 +0800
|
|
Subject: [PATCH] fix: do not keep config
|
|
|
|
---
|
|
package/base-files/files/lib/preinit/80_mount_root | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/package/base-files/files/lib/preinit/80_mount_root b/package/base-files/files/lib/preinit/80_mount_root
|
|
index c3816c2cbf..62a1a4bf32 100644
|
|
--- a/package/base-files/files/lib/preinit/80_mount_root
|
|
+++ b/package/base-files/files/lib/preinit/80_mount_root
|
|
@@ -17,6 +17,7 @@ missing_lines() {
|
|
do_mount_root() {
|
|
mount_root
|
|
boot_run_hook preinit_mount_root
|
|
+ return
|
|
[ -f /sysupgrade.tgz -o -f /tmp/sysupgrade.tar ] && {
|
|
echo "- config restore -"
|
|
cp /etc/passwd /etc/group /etc/shadow /tmp
|
|
--
|
|
2.34.1
|
|
|