From 1461fffba89efdf88af5cf79700af4d3d36dc3c3 Mon Sep 17 00:00:00 2001 From: apio Date: Tue, 20 Jun 2023 21:44:09 +0200 Subject: [PATCH] mount: Put the source argument first --- apps/mount.cpp | 2 +- initrd/sbin/mount-tmpfs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/mount.cpp b/apps/mount.cpp index 1f9b48c0..12841fae 100644 --- a/apps/mount.cpp +++ b/apps/mount.cpp @@ -11,8 +11,8 @@ Result luna_main(int argc, char** argv) os::ArgumentParser parser; parser.add_description("Mount a file system."); parser.add_system_program_info("mount"_sv); - parser.add_positional_argument(target, "mountpoint"_sv, true); parser.add_positional_argument(source, "source"_sv, true); + parser.add_positional_argument(target, "mountpoint"_sv, true); parser.add_value_argument(fstype, 't', "type"_sv, "the file system type to use"); parser.parse(argc, argv); diff --git a/initrd/sbin/mount-tmpfs b/initrd/sbin/mount-tmpfs index a86562e7..ece039a3 100644 --- a/initrd/sbin/mount-tmpfs +++ b/initrd/sbin/mount-tmpfs @@ -1,5 +1,5 @@ #!/bin/sh mkdir -p /tmp -mount -t tmpfs /tmp tmpfs +mount -t tmpfs tmpfs /tmp chmod 1777 /tmp