fix cp path expanding
This commit is contained in:
parent
2cc01ee124
commit
60c79ca99e
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ copy_config() {
|
||||||
echo "Copying important config into new rootfs..."
|
echo "Copying important config into new rootfs..."
|
||||||
cp -ax "${OLDROOT}/etc/resolv.conf" "${NEWROOT}/etc"
|
cp -ax "${OLDROOT}/etc/resolv.conf" "${NEWROOT}/etc"
|
||||||
cp -axr "${OLDROOT}/etc/ssh" "${NEWROOT}/etc"
|
cp -axr "${OLDROOT}/etc/ssh" "${NEWROOT}/etc"
|
||||||
cp -ax "${OLDROOT}/etc/{passwd,shadow}" "${NEWROOT}/etc"
|
cp -ax "${OLDROOT}/etc/"{passwd,shadow} "${NEWROOT}/etc"
|
||||||
cp -axr "${OLDROOT}/root/.ssh" "${NEWROOT}/root"
|
cp -axr "${OLDROOT}/root/.ssh" "${NEWROOT}/root"
|
||||||
|
|
||||||
chroot "${NEWROOT}" chsh -s /bin/bash root
|
chroot "${NEWROOT}" chsh -s /bin/bash root
|
||||||
|
|
Loading…
Reference in a new issue