Add support for package lists
This commit is contained in:
parent
7102e813d4
commit
e380b80559
2 changed files with 29 additions and 1 deletions
|
@ -3,6 +3,8 @@
|
|||
run_latehook() {
|
||||
echo
|
||||
|
||||
touch /new_root/.custom_pkg_list
|
||||
|
||||
# Remove /new_root/mnt/iso-update/.successful-update if exists
|
||||
rm -f /new_root/mnt/iso-update/.successful-update
|
||||
|
||||
|
@ -12,6 +14,9 @@ run_latehook() {
|
|||
mv /new_root/usr /new_root/.old.usr
|
||||
mv /new_root/mnt/iso-update/squashfs-root/usr /new_root/usr
|
||||
|
||||
# Copy package list
|
||||
mv /new_root/mnt/iso-update/squashfs-root/.custom_pkg_list /new_root
|
||||
|
||||
# Update /usr/lib/modules for current kernel version.
|
||||
for kversion in /new_root/.old.usr/lib/modules/*; do
|
||||
if [[ ! -d /new_root/usr/lib/modules/"$(basename "$kversion")" ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue