diff options
author | Daniel Tartavel <contact@librepc.com> | 2018-08-03 23:30:15 +0200 |
---|---|---|
committer | Daniel Tartavel <contact@librepc.com> | 2018-08-03 23:30:15 +0200 |
commit | 154773db721669b5c4d85f0437e3bb1da2392b4d (patch) | |
tree | 843d0a4507c11217645f3963c8232f1358f896cc /create_arm_img_urpmi.sh | |
parent | 27534ed173c612560ce7a2addcc7a6eca3b18402 (diff) | |
download | mageia4arm-154773db721669b5c4d85f0437e3bb1da2392b4d.tar mageia4arm-154773db721669b5c4d85f0437e3bb1da2392b4d.tar.gz mageia4arm-154773db721669b5c4d85f0437e3bb1da2392b4d.tar.bz2 mageia4arm-154773db721669b5c4d85f0437e3bb1da2392b4d.tar.xz mageia4arm-154773db721669b5c4d85f0437e3bb1da2392b4d.zip |
- added kernel xu4
Diffstat (limited to 'create_arm_img_urpmi.sh')
-rwxr-xr-x | create_arm_img_urpmi.sh | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/create_arm_img_urpmi.sh b/create_arm_img_urpmi.sh index 263a9a7..2ed00c6 100755 --- a/create_arm_img_urpmi.sh +++ b/create_arm_img_urpmi.sh @@ -263,15 +263,7 @@ function jumpchroot() error "line $LINENO error copying $SOURCE_PATH/$CONFIG_PATH/second_stage_install.sh : exiting" exit 1 fi - -# info "copying kernel-odroid rpm in $BUILD_PATH" -# echo "/bin/cp $SOURCE_PATH/kernel-odroid-4.14.y-1.armv7hl.rpm $BUILD_PATH/" -# /usr/bin/cp "$SOURCE_PATH/kernel-odroid-4.14.y-1.armv7hl.rpm" "$BUILD_PATH/" -# if [ $? -ne 0 ];then -# error "line $LINENO error copying $SOURCE_PATH/kernel-odroid-4.14.y-1.armv7hl.rpm : exiting" -# exit 1 -# fi - + info "creation of user account" echo "/bin/passwd << EOF $ROOT_PWD @@ -287,7 +279,25 @@ EOF" >>"$BUILD_PATH/second_stage_install.sh" info "Copying skel in root directory" /bin/rsync -a /etc/skel/ "$BUILD_PATH/root/" - + + #configuration for target + + case $TARGET in + xu3-4) + #TEMPORARY CODE + #copying kernel not existing in mageia + info "copying kernel-odroid rpm in $BUILD_PATH" + echo "/bin/cp $SOURCE_PATH/$CONFIG_PATH/kernel-odroid-4.14.y-1.armv7hl.rpm $BUILD_PATH/" + /usr/bin/cp "$SOURCE_PATH/$CONFIG_PATH/kernel-odroid-4.14.y-1.armv7hl.rpm" "$BUILD_PATH/" + if [ $? -ne 0 ];then + error "line $LINENO error copying $SOURCE_PATH/$CONFIG_PATH/kernel-odroid-4.14.y-1.armv7hl.rpm : exiting" + exit 1 + fi + ;; + rpi) + ;; + esac + title "chrooting to $BUILD_PATH" /sbin/chroot --userspec root:root "$BUILD_PATH" /bin/bash -v -c 'sh /second_stage_install.sh' RET=$? |