deployment: display running processes if rereading disk partition fails

If that fails then some process is still running inside the chroot

From: Michael Prokop <mprokop@sipwise.com>
ksolomko/vlan
Michael Prokop 14 years ago
parent 5e8d5bacd4
commit 3006e6b1bd

@ -1389,7 +1389,10 @@ sync
umount $TARGET || umount -l $TARGET # fall back if a process is still being active
# make sure /etc/fstab is up2date
blockdev --rereadpt /dev/$DISK || true
if ! blockdev --rereadpt /dev/$DISK ; then
echo "Something on disk /dev/$DISK (mountpoint $TARGET) seems to be still active, debugging output follows:"
ps auxwww || true
fi
# party time! who brings the whiskey?
echo "Installation finished. \o/"

Loading…
Cancel
Save