diff --git a/chkboot b/chkboot index dbcdea2..9b19e7b 100755 --- a/chkboot +++ b/chkboot @@ -68,7 +68,7 @@ dd if="$BOOTDISK" of="$DISKHEAD" bs=512 count=1 > /dev/null 2>&1 pushd "$BOOTDIR" > /dev/null 2>&1 files=`find . -type f` # get file infos - files=`echo $files | sed "s/.\/grub\/grubenv//"` # remove files that should be skipped + files=`echo $files | sed -e "s/.\/grub\/grubenv//" -e "s/\.\/loader\/random-seed//"` # remove files that should be skipped # generate hashes of each file for fname in $files; do diff --git a/notification/chkboot-desktopalert b/notification/chkboot-desktopalert index 0991200..694ac77 100755 --- a/notification/chkboot-desktopalert +++ b/notification/chkboot-desktopalert @@ -11,12 +11,12 @@ chgfile=${CHKBOOT_DATA}/${CHANGES_ALERT} XMESSAGE=/usr/bin/xmessage ZENITY=/usr/bin/zenity -NOTIFICATION="This notification will continue to appear until you either run chkboot again as root or restart your computer" +NOTIFICATION="This notification will continue to appear until you\n- either run chkboot again as root\n- or restart your computer" if [ -s $chgfile ]; then if [ -x $ZENITY ]; then - cat $chgfile | $ZENITY --title "ALERT: Boot changes" --text-info --width 550 --height 300 - $ZENITY --title "chkboot" --info --text="$NOTIFICATION" + cat $chgfile | $ZENITY --title "ALERT: Boot changes" --text-info --width 640 --height 480 --no-wrap + $ZENITY --title "chkboot" --info --height=100 --width=100 --no-wrap --text="$NOTIFICATION" elif [ -x $XMESSAGE ]; then cat $chgfile | $XMESSAGE -default okay -file - $XMESSAGE -default okay $NOTIFICATION diff --git a/pacman-hooks/80-chkboot-check.hook b/pacman-hooks/80-chkboot-check.hook index 2a036b5..b61c54a 100644 --- a/pacman-hooks/80-chkboot-check.hook +++ b/pacman-hooks/80-chkboot-check.hook @@ -1,9 +1,12 @@ [Trigger] -Type = File +Type = Package Operation = Install Operation = Upgrade Operation = Remove -Target = boot/* +Target = linux* +Target = mkinitcpio* +Target = grub* +Target = systemd [Action] Depends = chkboot diff --git a/pacman-hooks/99-chkboot-update.hook b/pacman-hooks/99-chkboot-update.hook index ef1edc6..34d8554 100644 --- a/pacman-hooks/99-chkboot-update.hook +++ b/pacman-hooks/99-chkboot-update.hook @@ -1,9 +1,12 @@ [Trigger] -Type = File +Type = Package Operation = Install Operation = Upgrade Operation = Remove -Target = boot/* +Target = linux* +Target = mkinitcpio* +Target = grub* +Target = systemd [Action] Depends = chkboot