-
-
Notifications
You must be signed in to change notification settings - Fork 40
Add patch_loader_conf_d function #247
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
Conversation
Add support to copy pre-defined conf files to the ISO's /boot/loader.conf.d directory.
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR adds a new shell function, patch_loader_conf_d, to common_config/base-setting.sh that automates copying pre-generated .conf files into the ISO’s /boot/loader.conf.d directory, including directory creation and permission setting. Class diagram for shell functions in base-setting.sh after patch_loader_conf_d additionclassDiagram
class patch_etc_files {
+cat devfs.rules.extra >> /etc/devfs.rules
+cat fstab.extra >> /etc/fstab
+mkdir -p /compat/linux/dev/shm
+mkdir -p /compat/linux/sys
}
class patch_loader_conf_d {
+check if patches_dir exists
+mkdir -p /boot/loader.conf.d
+cp *.conf to /boot/loader.conf.d/
+chmod 644 *.conf in /boot/loader.conf.d
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
common_config/base-setting.sh
Outdated
|
|
||
| patch_loader_conf_d() | ||
| { | ||
| local patches_dir="${cwd}/common_config/base-setting/patches/boot/loader.conf.d" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./common_config/base-setting.sh:13:3: warning: In POSIX sh, 'local' is undefined. [SC3043]
Add support to copy pre-defined conf files to the ISO's /boot/loader.conf.d directory.
Summary by Sourcery
Add support for applying pre-defined loader.conf.d configurations by introducing a new patch_loader_conf_d function that copies and sets permissions for .conf files into the ISO’s /boot/loader.conf.d directory.
New Features:
Enhancements: