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,7 +916,16 @@ then
else
if [ ${root_expire_password} = "yes" ]
then
echo "
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
root password or wish to change it without starting the container, you
@ -925,5 +934,6 @@ also reset the expired flag):
chroot ${rootfs_path} passwd
"
fi
fi
fi

View File

@ -1468,7 +1468,16 @@ then
else
if [ ${root_expire_password} = "yes" ]
then
echo "
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
root password or wish to change it without starting the container, you
@ -1477,5 +1486,6 @@ also reset the expired flag):
chroot ${rootfs_path} passwd
"
fi
fi
fi