-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(overlayfs): add a new module called overlayfs
Also split ovlfs variable with two different meaning.
- Loading branch information
1 parent
8caaad4
commit 40dd5c9
Showing
8 changed files
with
35 additions
and
13 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 |
---|---|---|
|
@@ -11,13 +11,13 @@ check() { | |
depends() { | ||
# if dmsetup is not installed, then we cannot support fedora/red hat | ||
# style live images | ||
echo dm rootfs-block img-lib | ||
echo dm rootfs-block img-lib overlayfs | ||
return 0 | ||
} | ||
|
||
# called by dracut | ||
installkernel() { | ||
instmods squashfs loop iso9660 overlay | ||
instmods squashfs loop iso9660 | ||
} | ||
|
||
# called by dracut | ||
|
@@ -31,7 +31,6 @@ install() { | |
inst_hook pre-pivot 20 "$moddir/apply-live-updates.sh" | ||
inst_script "$moddir/dmsquash-live-root.sh" "/sbin/dmsquash-live-root" | ||
inst_script "$moddir/iso-scan.sh" "/sbin/iso-scan" | ||
inst_script "$moddir/mount-overlayfs.sh" "/sbin/mount-overlayfs" | ||
if dracut_module_included "systemd-initrd"; then | ||
inst_script "$moddir/dmsquash-generator.sh" "$systemdutildir"/system-generators/dracut-dmsquash-generator | ||
inst_simple "$moddir/[email protected]" "/etc/systemd/system/[email protected]" | ||
|
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
check() { | ||
[[ $hostonly ]] && return 1 | ||
return 255 | ||
} | ||
|
||
depends() { | ||
echo base | ||
} | ||
|
||
installkernel() { | ||
instmods overlay | ||
} | ||
|
||
install() { | ||
inst_hook mount 01 "$moddir/mount-overlayfs.sh" | ||
} |
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