Skip to content

Commit 3d7da21

Browse files
committed
fix: Notification warning "lastore-daemon is modifying the system
read-only directory" - Occurs when continuing the upgrade after the backup system fails; - Add environment variable IMMUTABLE_DISABLE_REMOUNT=false for the `apt-get check` command. Task: https://pms.uniontech.com/task-view-385439.html
1 parent 186bb3e commit 3d7da21

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/internal/system/apt/proxy.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ func CheckPkgSystemError(lock bool, indicator system.Indicator) error {
187187
}
188188

189189
cmd := exec.Command("apt-get", args...)
190+
if lock {
191+
// Need remount to write data in /usr directory.
192+
cmd.Env = append(os.Environ(), "IMMUTABLE_DISABLE_REMOUNT=false")
193+
}
190194
var outBuf bytes.Buffer
191195
cmd.Stdout = &outBuf
192196
var errBuf bytes.Buffer

0 commit comments

Comments
 (0)