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

feat(24.04): add dosfstools #341

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions slices/dosfstools.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package: dosfstools

essential:
- dosfstools_copyright

slices:
bins:
essential:
- libc6_libs
contents:
cjdcordeiro marked this conversation as resolved.
Show resolved Hide resolved
/usr/sbin/dosfsck:
/usr/sbin/dosfslabel:
/usr/sbin/fatlabel:
/usr/sbin/fsck.fat:
/usr/sbin/fsck.msdos:
/usr/sbin/fsck.vfat:
/usr/sbin/mkdosfs:
/usr/sbin/mkfs.fat:
/usr/sbin/mkfs.msdos:
/usr/sbin/mkfs.vfat:

copyright:
contents:
/usr/share/doc/dosfstools/copyright:
24 changes: 24 additions & 0 deletions tests/spread/integration/dosfstools/task.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
summary: Integration tests for dosfstools

execute: |
# Chisel a minimum number of slices to give us a runnable system that we can
# test in.
rootfs="$(install-slices dosfstools_bins)"
# create a test image
dd if=/dev/zero of="${rootfs}/test.img" bs=1M count=250
# format the test image as fat
chroot "${rootfs}" mkfs.fat test.img
# check that the format was fine
chroot "${rootfs}" fsck.fat test.img | grep "0 files"
# change the label of the image
chroot "${rootfs}" fatlabel test.img "TESTIMG"
# verify it changed
chroot "${rootfs}" fatlabel test.img | grep "TESTIMG"
# cleanup
rm "${rootfs}/test.img"
Loading