Merge pull request #773 from nehaljwani/fix-lxc-create-report

Fix message after {fedora|centos}container creation
This commit is contained in:
Stéphane Graber 2016-01-29 09:43:55 +01:00
commit c60646aaa9
2 changed files with 22 additions and 2 deletions

View File

@ -916,6 +916,15 @@ then
else
if [ ${root_expire_password} = "yes" ]
then
if ( mountpoint -q -- "${rootfs_path}" )
then
echo "To reset the root password, you can do:
lxc-start -n ${name}
lxc-attach -n ${name} -- passwd
lxc-stop -n ${name}
"
else
echo "
The root password is set up as "expired" and will require it to be changed
at first login, which you should do as soon as possible. If you lose the
@ -927,3 +936,4 @@ also reset the expired flag):
"
fi
fi
fi

View File

@ -1468,6 +1468,15 @@ then
else
if [ ${root_expire_password} = "yes" ]
then
if ( mountpoint -q -- "${rootfs_path}" )
then
echo "To reset the root password, you can do:
lxc-start -n ${name}
lxc-attach -n ${name} -- passwd
lxc-stop -n ${name}
"
else
echo "
The root password is set up as "expired" and will require it to be changed
at first login, which you should do as soon as possible. If you lose the
@ -1479,3 +1488,4 @@ also reset the expired flag):
"
fi
fi
fi