-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make fusefs handling more robust. review documentation --------- Co-authored-by: craig bender <[email protected]>
- Loading branch information
1 parent
3cc25be
commit 53587d2
Showing
4 changed files
with
38 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
#!/bin/sh | ||
#!/bin/sh -x | ||
|
||
echo 'Adding curtin-hooks to image...' | ||
mount_part 1 $TMP_DIR/boot fusefat | ||
cp -rv curtin $TMP_DIR/boot/ | ||
mount_part 1 "$TMP_DIR"/boot fusefat | ||
cp -rv curtin "$TMP_DIR"/boot/ | ||
|
||
echo 'Adding post-install scripts to image...' | ||
cp -v scripts.tar.xz $TMP_DIR/boot/curtin/ | ||
cp -v scripts.tar.xz "$TMP_DIR"/boot/curtin/ | ||
|
||
echo 'Unmounting image...' | ||
sync -f $TMP_DIR/boot | ||
fusermount -u $TMP_DIR/boot | ||
sync -f "$TMP_DIR"/boot | ||
fusermount -z -u "$TMP_DIR"/boot | ||
grep -qs "$TMP_DIR/boot " /proc/mounts && umount -f "$TMP_DIR"/boot |