Skip to content

Commit

Permalink
removed options for boot
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Bezos committed Oct 23, 2024
1 parent f410018 commit 67c091e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/install.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,13 @@ int mount_boot(std::string target) {
const char* source = source_str.c_str();
const char* mount_point = "/mnt/efi";
const char* filesystemtype = "vfat";
const char* options = "defaults";

if (mount(source, mount_point, filesystemtype, 0, options) != 0) {
if (mount(source, mount_point, filesystemtype, 0, 0) != 0) {
std::cerr << "Failed to mount: " << std::strerror(errno) << std::endl;
return -1;
}

std::cout << "Successfully mounted " << source << " at " << mount_point
<< " with options: " << options << std::endl;
std::cout << "Successfully mounted " << source << " at " << mount_point << std::endl;

return 0;
}
Expand Down

0 comments on commit 67c091e

Please sign in to comment.