mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-25 18:50:44 +03:00
Merge c9260ffc550f17cb86952c18d33a93fb53c04d55 into b3adfa83ab61682dec6c3834678ca2e9eae43e03
This commit is contained in:
commit
e4090a199f
@ -25,6 +25,7 @@ script=$(basename ${0})
|
||||
# Atomically safe location where to generete grub.cfg when executing system upgrade.
|
||||
new_grub2_cfg=${2}
|
||||
entries_path=$(dirname $new_grub2_cfg)/entries
|
||||
custom_scripts="/etc/ostree.d"
|
||||
|
||||
read_config()
|
||||
{
|
||||
@ -105,10 +106,22 @@ timeout=10
|
||||
EOF
|
||||
}
|
||||
|
||||
populate_custom_section()
|
||||
{
|
||||
if [ -d "$custom_scripts" ]; then
|
||||
for script in $(ls -v $custom_scripts/*); do
|
||||
echo -e "\n### BEGIN ${script} ###" >> ${new_grub2_cfg}
|
||||
cat ${script} >> ${new_grub2_cfg}
|
||||
echo -e "\n### END ${script} ###\n" >> ${new_grub2_cfg}
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
generate_grub2_cfg()
|
||||
{
|
||||
populate_warning
|
||||
populate_header
|
||||
populate_custom_section
|
||||
populate_menu
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user