aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/core/kmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/core/kmain.c')
-rw-r--r--src/kernel/core/kmain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/core/kmain.c b/src/kernel/core/kmain.c
index 7bdf27d..8242f99 100644
--- a/src/kernel/core/kmain.c
+++ b/src/kernel/core/kmain.c
@@ -251,7 +251,7 @@ fs_t *setup_rootfs(btree_t *cmdline, fs_t *iofs) {
fs_handle_t *root_dev = fs_open(iofs, root, FM_READ | FM_WRITE | FM_IOCTL);
if (root_dev == 0) {
dbg_printf("read-only... ");
- root_dev = fs_open(iofs, root, FM_READ | FM_WRITE | FM_IOCTL);
+ root_dev = fs_open(iofs, root, FM_READ | FM_IOCTL);
}
dbg_printf("\n");
if (root_dev == 0) PANIC("Could not open root device.");