I'm not sure the svcadm command makes any sense outside the context of the currently running OS.
You could try copying an older copy of the repository back in (look in /etc/svc of your root disk) from failsafe mode. The working
repository name is /etc/svc/respository.db
You could also try to delete the service out of the repository and re-import it. You can do that by doing the following:
- Boot failsafe mode
- mount your root filesystem under /a
- Set the following envs and export them:
SVCCFG_DTD=/a/usr/share/lib/xml/dtd/service_bundle.dtd.1
SVCCFG_REPOSITORY=/a/etc/svc/repository.db
export SVCCFG_DTD SVCCFG_REPOSITORY
- svccfg delete svc:/system/console-login:default
- svccfg import /a/var/svc/manifest/system/console-login.xml
- umount /a
Then try booting your root disk again. Since the default instance for console-login has enabled=true, it should activate it when you
boot.
No comments:
Post a Comment