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
|
cp "$sysroot"/lib/modules/*/vmlinuz "$MY_TMPDIR"/linux
|
||||||
|
|
||||||
rm -fr "$sysroot"/{boot,root}
|
rm -fr "$sysroot"/{boot,root}
|
||||||
ln -sfnr "$sysroot"/data/root "$sysroot"/root
|
ln -sfnr "$sysroot"/var/root "$sysroot"/root
|
||||||
mkdir -p "$sysroot"/usr/etc
|
|
||||||
mv "$sysroot"/etc/yum.repos.d "$sysroot"/usr/etc/yum.repos.d
|
|
||||||
mkdir "$sysroot"/efi
|
mkdir "$sysroot"/efi
|
||||||
rm -fr "$sysroot"/var/*
|
rm -fr "$sysroot"/var/*
|
||||||
rm -fr "$sysroot"/home/*
|
rm -fr "$sysroot"/home/*
|
||||||
|
|
Loading…
Reference in a new issue