Commit fbe4ab9d authored by jan.koester's avatar jan.koester
Browse files

remount added

parent 6d06cf2d
Loading
Loading
Loading
Loading
+4 −0
Changes for src/syslite.cpp: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -93,6 +93,10 @@ namespace syslite {
    }

    void Init::mountVirtualFilesystems() {
        // Remount root filesystem read-write (initramfs may have mounted it ro)
        std::cout << "[syslite] Remounting / read-write" << std::endl;
        mount("", "/", "", MS_REMOUNT, nullptr);

        // Mount /proc if not already mounted
        if (!std::filesystem::exists("/proc/self")) {
            std::cout << "[syslite] Mounting /proc" << std::endl;