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