prepare-root.sh: fix /root symlink

This commit is contained in:
Harald Hoyer 2018-09-13 13:44:23 +02:00
parent ddbef9392b
commit 23680b65ff

View file

@ -469,9 +469,7 @@ mv -v "$sysroot"/boot/*/*/initrd "$MY_TMPDIR"/
cp "$sysroot"/lib/modules/*/vmlinuz "$MY_TMPDIR"/linux
rm -fr "$sysroot"/{boot,root}
ln -sfnr "$sysroot"/data/root "$sysroot"/root
mkdir -p "$sysroot"/usr/etc
mv "$sysroot"/etc/yum.repos.d "$sysroot"/usr/etc/yum.repos.d
ln -sfnr "$sysroot"/var/root "$sysroot"/root
mkdir "$sysroot"/efi
rm -fr "$sysroot"/var/*
rm -fr "$sysroot"/home/*