The following in a stack script results in a fresh Arch 2010.05 booting with the package database still locked:
Code:
# update pacman and do system update
pacman -Sy
pacman -S pacman --noconfirm
pacman-db-upgrade
pacman -Syu --noconfirm
Once booted, pacman reports:
Code:
[root@d1 ~]# pacman -Syu
:: Synchronizing package databases...
error: failed to init transaction (unable to lock database)
if you're sure a package manager is not already
running, you can remove /var/lib/pacman/db.lck
The obvious work-around is just add a line to the stack script to remove the db.lck file - but this probably shouldn't be necessary.