Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • archlinux/archutils
1 result
Show changes
Commits on Source (2)
...@@ -124,8 +124,9 @@ get_broken_maps() { ...@@ -124,8 +124,9 @@ get_broken_maps() {
continue continue
} }
# only file mapped as executable # only file mapped as executable
# do not use awk fields sepration, path may contain spaces # use awk fields separation with caution, path may contain spaces
deleted="$(awk '/^\S+ ..x. .+\(deleted\)$/ {sub(/^(\S+\s+){5}/,""); sub(/ \(deleted\)$/,""); print}' "$maps_path")" # deleted /memfd: paths don't mean process need to be restarted (e.g. jellyfin)
deleted="$(awk '/^\S+ ..x. .+\(deleted\)$/ && $6 !~ /^\/memfd:/ {print}' "$maps_path")"
if [[ $deleted ]]; then if [[ $deleted ]]; then
printf "%s\n" $service printf "%s\n" $service
break break
......
...@@ -19,20 +19,4 @@ ...@@ -19,20 +19,4 @@
# Check running systemd services for binary update # Check running systemd services for binary update
# Convenient way to restart updated systemd service after upgrade # Convenient way to restart updated systemd service after upgrade
# from now, we need to be root exec kernel-install add-all "$@"
(( $UID != 0 )) && echo 'You need to be root' && exit 1
read machineid < /etc/machine-id
echo "Your machine-id is $machineid"
cd "/usr/lib/kernel"
for _k in *; do
[[ -d "$_k" ]] && continue
[[ "$(file -b "$_k")" =~ ^"Linux kernel" ]] || continue
ver=${_k#*-}
if [[ -d "/boot/$machineid/$ver" ]]; then
kernel-install remove "$ver"
fi
kernel-install add "$ver" "/usr/lib/kernel/$_k"
done