Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit cc63cae3 authored by Robert Nelson's avatar Robert Nelson
Browse files

chroot: deborphan: run manually and add pkg list to chroot_manual_deborphan_list


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent ab6ce818
No related merge requests found
......@@ -32,5 +32,7 @@ rfs_console_user_pass="enable"
rfs_ssh_banner=""
rfs_ssh_user_pass=""
##
chroot_not_reliable_deborphan="enable"
chroot_manual_deborphan_list=""
chroot_very_small_image="enable"
chroot_tarball="enable"
......@@ -36,5 +36,7 @@ rfs_ssh_user_pass=""
repo_rcnee="enable"
repo_rcnee_pkg_list=""
##
chroot_not_reliable_deborphan="enable"
chroot_manual_deborphan_list=""
chroot_very_small_image="enable"
chroot_tarball="enable"
......@@ -508,6 +508,7 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
}
run_deborphan () {
echo "Log: (chroot): deborphan is not reliable, run manual and add pkg list to: [chroot_manual_deborphan_list]"
apt-get -y --force-yes install deborphan
# Prevent deborphan from removing explicitly required packages
......@@ -523,6 +524,14 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
apt-get clean
}
manual_deborphan () {
if [ ! "x${chroot_manual_deborphan_list}" = "x" ] ; then
echo "Log: (chroot): cleanup: [${chroot_manual_deborphan_list}]"
apt-get -y remove ${chroot_manual_deborphan_list} --purge
apt-get clean
fi
}
dl_kernel () {
wget --no-verbose --directory-prefix=/tmp/ \${kernel_url}
......@@ -759,9 +768,10 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
install_pkgs
system_tweaks
set_locale
if [ "x${chroot_very_small_image}" = "xenable" ] ; then
if [ "x${chroot_not_reliable_deborphan}" = "xenable" ] ; then
run_deborphan
fi
manual_deborphan
add_user
mkdir -p /opt/source || true
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment