update inner chroot scripts to sablink
This commit is contained in:
parent
c65cefd5af
commit
006a580cf5
@ -47,9 +47,9 @@ echo "inet_interfaces = localhost" >> /etc/postfix/main.cf
|
|||||||
# turn bashlogin shells to actual login shells
|
# turn bashlogin shells to actual login shells
|
||||||
sed -i 's:exec -l /bin/bash:exec -l /bin/bash -l:' /bin/bashlogin
|
sed -i 's:exec -l /bin/bash:exec -l /bin/bash -l:' /bin/bashlogin
|
||||||
|
|
||||||
# setup /etc/hosts, add sabayon as default hostname (required by Xfce)
|
# setup /etc/hosts, add sablink as default hostname (required by Xfce)
|
||||||
sed -i "/^127.0.0.1/ s/localhost/localhost sabayon/" /etc/hosts
|
sed -i "/^127.0.0.1/ s/localhost/localhost sablink/" /etc/hosts
|
||||||
sed -i "/^::1/ s/localhost/localhost sabayon/" /etc/hosts
|
sed -i "/^::1/ s/localhost/localhost sablink/" /etc/hosts
|
||||||
|
|
||||||
# setup postfix local mail aliases
|
# setup postfix local mail aliases
|
||||||
newaliases
|
newaliases
|
||||||
@ -97,9 +97,9 @@ for repo_conf in /etc/entropy/repositories.conf.d/entropy_*.example; do
|
|||||||
cp "${repo_conf}" "${new_repo_conf}"
|
cp "${repo_conf}" "${new_repo_conf}"
|
||||||
done
|
done
|
||||||
|
|
||||||
# copy Portage config from sabayonlinux.org entropy repo to system
|
# copy Portage config from sablink.nas-central.org entropy repo to system
|
||||||
for conf in package.mask package.unmask package.keywords make.conf package.use; do
|
for conf in package.mask package.unmask package.keywords make.conf package.use; do
|
||||||
repo_path=/var/lib/entropy/client/database/*/sabayonlinux.org/standard
|
repo_path=/var/lib/entropy/client/database/*/sablink.nas-central.org/standard
|
||||||
repo_conf=$(ls -1 ${repo_path}/*/*/${conf} | sort | tail -n 1 2>/dev/null)
|
repo_conf=$(ls -1 ${repo_path}/*/*/${conf} | sort | tail -n 1 2>/dev/null)
|
||||||
if [ -n "${repo_conf}" ]; then
|
if [ -n "${repo_conf}" ]; then
|
||||||
target_path="/etc/portage/${conf}"
|
target_path="/etc/portage/${conf}"
|
||||||
@ -113,7 +113,7 @@ for conf in package.mask package.unmask package.keywords make.conf package.use;
|
|||||||
done
|
done
|
||||||
# split config file
|
# split config file
|
||||||
for conf in 00-sabayon.package.use; do
|
for conf in 00-sabayon.package.use; do
|
||||||
repo_path=/var/lib/entropy/client/database/*/sabayonlinux.org/standard
|
repo_path=/var/lib/entropy/client/database/*/sablink.nas-central.org/standard
|
||||||
repo_conf=$(ls -1 ${repo_path}/*/*/${conf} | sort | tail -n 1 2>/dev/null)
|
repo_conf=$(ls -1 ${repo_path}/*/*/${conf} | sort | tail -n 1 2>/dev/null)
|
||||||
if [ -n "${repo_conf}" ]; then
|
if [ -n "${repo_conf}" ]; then
|
||||||
target_path="/etc/portage/${conf/00-sabayon.}/${conf}"
|
target_path="/etc/portage/${conf/00-sabayon.}/${conf}"
|
||||||
@ -134,6 +134,8 @@ layman -d sabayon
|
|||||||
rm -rf /var/lib/layman/sabayon
|
rm -rf /var/lib/layman/sabayon
|
||||||
layman -d sabayon-distro
|
layman -d sabayon-distro
|
||||||
rm -rf /var/lib/layman/sabayon-distro
|
rm -rf /var/lib/layman/sabayon-distro
|
||||||
|
layman -d sablink
|
||||||
|
rm -rf /var/lib/layman/sablink
|
||||||
|
|
||||||
# Reset users' password
|
# Reset users' password
|
||||||
# chpasswd doesn't work anymore
|
# chpasswd doesn't work anymore
|
||||||
@ -158,7 +160,7 @@ if [ -x "/usr/bin/fluxbox-generate_menu" ]; then
|
|||||||
fluxbox-generate_menu -o /etc/skel/.fluxbox/menu
|
fluxbox-generate_menu -o /etc/skel/.fluxbox/menu
|
||||||
fi
|
fi
|
||||||
|
|
||||||
equo query list installed -qv > /etc/sabayon-pkglist
|
equo query list installed -qv > /etc/sablink-pkglist
|
||||||
|
|
||||||
rm -rf /var/tmp/entropy/*
|
rm -rf /var/tmp/entropy/*
|
||||||
rm -rf /var/lib/entropy/logs
|
rm -rf /var/lib/entropy/logs
|
||||||
|
@ -74,9 +74,9 @@ fi
|
|||||||
|
|
||||||
rm -rf /var/lib/entropy/client/packages
|
rm -rf /var/lib/entropy/client/packages
|
||||||
|
|
||||||
# copy Portage config from sabayonlinux.org entropy repo to system
|
# copy Portage config from sablink.nas-central.org entropy repo to system
|
||||||
for conf in package.mask package.unmask package.keywords make.conf package.use; do
|
for conf in package.mask package.unmask package.keywords make.conf package.use; do
|
||||||
repo_path=/var/lib/entropy/client/database/*/sabayonlinux.org/standard
|
repo_path=/var/lib/entropy/client/database/*/sablink.nas-central.org/standard
|
||||||
repo_conf=$(ls -1 ${repo_path}/*/*/${conf} | sort | tail -n 1 2>/dev/null)
|
repo_conf=$(ls -1 ${repo_path}/*/*/${conf} | sort | tail -n 1 2>/dev/null)
|
||||||
if [ -n "${repo_conf}" ]; then
|
if [ -n "${repo_conf}" ]; then
|
||||||
target_path="/etc/portage/${conf}"
|
target_path="/etc/portage/${conf}"
|
||||||
@ -91,7 +91,7 @@ done
|
|||||||
|
|
||||||
# split config file
|
# split config file
|
||||||
for conf in 00-sabayon.package.use; do
|
for conf in 00-sabayon.package.use; do
|
||||||
repo_path=/var/lib/entropy/client/database/*/sabayonlinux.org/standard
|
repo_path=/var/lib/entropy/client/database/*/sablink.nas-central.org/standard
|
||||||
repo_conf=$(ls -1 ${repo_path}/*/*/${conf} | sort | tail -n 1 2>/dev/null)
|
repo_conf=$(ls -1 ${repo_path}/*/*/${conf} | sort | tail -n 1 2>/dev/null)
|
||||||
if [ -n "${repo_conf}" ]; then
|
if [ -n "${repo_conf}" ]; then
|
||||||
target_path="/etc/portage/${conf/00-sabayon.}/${conf}"
|
target_path="/etc/portage/${conf/00-sabayon.}/${conf}"
|
||||||
@ -107,4 +107,4 @@ for conf in 00-sabayon.package.use; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
equo query list installed -qv > /etc/sabayon-pkglist
|
equo query list installed -qv > /etc/sablink-pkglist
|
||||||
|
Loading…
Reference in New Issue
Block a user