summaryrefslogtreecommitdiff
path: root/src/fsck.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-31 00:39:36 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-31 00:40:13 +0200
commitcf1a105550766d2251bc10240b6058a37babd600 (patch)
tree915d32cad88b23f08cd469006695759f8e4db5db /src/fsck.c
parent198b625ba70d4c0ff72c6bc9a110832bd028273d (diff)
fsck: add new -l switch to fsck mount options
Diffstat (limited to 'src/fsck.c')
-rw-r--r--src/fsck.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fsck.c b/src/fsck.c
index 5574c0a9c0..fdcf6b43c5 100644
--- a/src/fsck.c
+++ b/src/fsck.c
@@ -142,7 +142,7 @@ static void test_files(void) {
}
int main(int argc, char *argv[]) {
- const char *cmdline[7];
+ const char *cmdline[8];
int i = 0, r = EXIT_FAILURE, q;
pid_t pid;
siginfo_t status;
@@ -188,7 +188,7 @@ int main(int argc, char *argv[]) {
times[0] = st.st_atim;
times[1] = st.st_mtim;
if (utimensat(AT_FDCWD, "/", times, 0) == 0) {
- log_error("Root directory is writable, skip check.");
+ log_info("Root directory is writable, skipping check.");
return 0;
}
@@ -213,6 +213,7 @@ int main(int argc, char *argv[]) {
cmdline[i++] = "/sbin/fsck";
cmdline[i++] = "-a";
cmdline[i++] = "-T";
+ cmdline[i++] = "-l";
if (!root_directory)
cmdline[i++] = "-M";