#!/bin/bash

set -e
new_sysroot_path=$(get_value new-root)

if [[ "${is_minimal}" = "true" ]]; then
    return 0
elif [[ "${is_ghost}" = "true" ]]; then
    return 0
fi

if [[ -f /target/etc/apt/sources.list.bak ]]; then
    mv $new_sysroot_path/etc/apt/sources.list{.bak,}
fi
