* update unifont
* stop packaging useless boot configuration * minor cleanups
This commit is contained in:
26
grub.install
26
grub.install
@ -1,15 +1,17 @@
|
||||
post_install() {
|
||||
if [ -f /boot/grub/grub.cfg.pacsave ]; then
|
||||
echo "Copying /boot/grub/grub.cfg.pacsave to /boot/grub/grub.cfg"
|
||||
install -D -m0644 /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg
|
||||
#!/bin/sh
|
||||
|
||||
post_upgrade() {
|
||||
# We used to package /boot/grub/grub.cfg, but there is no reason to.
|
||||
# Remove the file from package, but move real file back in place.
|
||||
if [ ! -f /boot/grub/grub.cfg -a -f /boot/grub/grub.cfg.pacsave ]; then
|
||||
mv /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg
|
||||
fi
|
||||
|
||||
cat << 'EOM'
|
||||
Generating grub.cfg.example config file...
|
||||
This may fail on some machines running a custom kernel.
|
||||
EOM
|
||||
|
||||
grub-mkconfig -o /boot/grub/grub.cfg.example 2> /dev/null
|
||||
echo "done."
|
||||
}
|
||||
|
||||
post_install() {
|
||||
cat << 'EOM'
|
||||
Generate your bootloader configuration with:
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
EOM
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user