summaryrefslogtreecommitdiffstats
path: root/remote/rootfs
diff options
context:
space:
mode:
authorJonathan Bauer2013-07-08 14:37:38 +0200
committerJonathan Bauer2013-07-08 14:37:38 +0200
commitc2362050ff4d92705e50a79906d5e62a7954e2df (patch)
tree6f1951e627dd808e28b38f5cd7c30321369ee483 /remote/rootfs
parentMerge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff)
downloadtm-scripts-c2362050ff4d92705e50a79906d5e62a7954e2df.tar.gz
tm-scripts-c2362050ff4d92705e50a79906d5e62a7954e2df.tar.xz
tm-scripts-c2362050ff4d92705e50a79906d5e62a7954e2df.zip
[kernel] remember last built version and if new kernel is detected, ask what to do. WARNING: KVERSION file will be missing, write the old (uname -r) under remote/modules/ksrc/KVERSION to be safe :)
Diffstat (limited to 'remote/rootfs')
-rw-r--r--remote/rootfs/rootfs-stage31/rootfs-stage31.build3
-rw-r--r--remote/rootfs/rootfs-stage32/rootfs-stage32.build20
2 files changed, 8 insertions, 15 deletions
diff --git a/remote/rootfs/rootfs-stage31/rootfs-stage31.build b/remote/rootfs/rootfs-stage31/rootfs-stage31.build
index d547d7a4..d9f28636 100644
--- a/remote/rootfs/rootfs-stage31/rootfs-stage31.build
+++ b/remote/rootfs/rootfs-stage31/rootfs-stage31.build
@@ -19,7 +19,10 @@ build() {
}
post_copy() {
+ pinfo "Generating rootfs for Stage 3.1 ..."
generate_rootfs
+
+ # copy kernel, modules and firmware
copy_kernel_modules
copy_firmware
copy_kernel
diff --git a/remote/rootfs/rootfs-stage32/rootfs-stage32.build b/remote/rootfs/rootfs-stage32/rootfs-stage32.build
index 39c96ccc..93094f72 100644
--- a/remote/rootfs/rootfs-stage32/rootfs-stage32.build
+++ b/remote/rootfs/rootfs-stage32/rootfs-stage32.build
@@ -104,21 +104,12 @@ post_copy() {
sed -i -r 's/^blacklist.*pcspkr/#&/g' "$TARGET_BUILD_DIR/etc/modprobe.d/blacklist.conf"
echo "minilinux-$(hostname)" > "${TARGET_BUILD_DIR}/etc/hostname"
- # check for kernel modules, if not present copy from system
- if [ ! -d ${TARGET_BUILD_DIR}/lib/modules ]; then
- pinfo "Copying modules for kernel ${KERNEL_VERSION}..."
- copy_kernel_modules
- else
- pinfo "Not copying kernel modules from system, as '${TARGET_BUILD_DIR}/lib/modules' already exists."
- fi
- # check for firmware, if not present copy from system
- if [ ! -d ${TARGET_BUILD_DIR}/lib/firmware ]; then
- pinfo "Copying firmware for kernel ${KERNEL_VERSION}..."
- copy_firmware
- else
- pinfo "Not copying firmware from system, as '${TARGET_BUILD_DIR}/lib/firmware' already exists."
- fi
+
+ # copy kernel, modules and firmware
+ copy_kernel_modules
+ copy_firmware
+ copy_kernel
# Try to fetch distro logo
if [ ! -s "$TARGET_BUILD_DIR/etc/distro.png" ]; then
@@ -134,6 +125,5 @@ post_copy() {
fi
fi
- copy_kernel
}