prepare-root.sh: fix /root symlink
This commit is contained in:
parent
ddbef9392b
commit
23680b65ff
|
@ -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/*
|
||||
|
|
Loading…
Reference in a new issue