Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for --rootdir option #183

Open
DaanDeMeyer opened this issue Oct 10, 2022 · 1 comment
Open

Add support for --rootdir option #183

DaanDeMeyer opened this issue Oct 10, 2022 · 1 comment

Comments

@DaanDeMeyer
Copy link

Both mkfs.btrfs and mkfs.ext4 support an option to specify a directory to bootstrap the generated filesystem from. This allows creating ext4 or btrfs filesystems in a file without needing root privileges since the filesystem doesn't need to be mounted to populate it. It would be great if mkfs.fat would also support such an option so that we can populate fat partitions without needing root privileges.

@pali
Copy link
Member

pali commented Oct 10, 2022

Yes, that sounds like a nice feature. Patches for it are welcome.

Meanwhile you can use mcopy binary from mtools project to add new files into the FAT filesystem image without need of root privileges.

DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Oct 11, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Oct 11, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Oct 11, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Oct 12, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Oct 12, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Oct 12, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Oct 12, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Oct 13, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Oct 13, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Oct 13, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Oct 18, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Nov 10, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Nov 10, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Nov 10, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Nov 11, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Nov 14, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Nov 15, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Nov 15, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Nov 15, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Nov 15, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Nov 15, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Nov 15, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Nov 15, 2022
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
d-hatayama pushed a commit to d-hatayama/systemd that referenced this issue Feb 15, 2023
mkfs.vfat doesn't support specifying a root directory to bootstrap
the filesystem from (see dosfstools/dosfstools#183).
Instead, we can use the mcopy tool from the mtools package to copy
files into the vfat filesystem after creating it without needing to
mount the vfat filesystem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants