mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
Ground-work for Sheeva UBI images
This commit is contained in:
parent
64ee609f42
commit
a44f0194dc
1 changed files with 6 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Plugbox Linux Distribution Image Builder
|
||||
# Version 0.2.0
|
||||
# Version 0.2.1
|
||||
#
|
||||
# Licensed under the GPLv2.
|
||||
#
|
||||
|
@ -14,7 +14,8 @@
|
|||
INSTALLEDPKGS="base kernel26-withlinux openssh openssl heimdal"
|
||||
RELEASEVER=1.1
|
||||
MAKETARGZ=1
|
||||
MAKEUBIIMG=1
|
||||
MAKEUBIIMGSHEEVA=0
|
||||
MAKEUBIIMGGURU=1
|
||||
# ==== The Process ====
|
||||
mkdir -p $1
|
||||
echo -e "\033[1mInstalling packages...\033[0m"
|
||||
|
@ -45,8 +46,8 @@ else
|
|||
fi
|
||||
|
||||
# Here is the UBI image part if you set MAKEUBIIMG to 1
|
||||
if [ $MAKEUBIIMG = 1 ]; then
|
||||
echo -e "\033[1mCreating a rootfs.ubi.img...\033[0m"
|
||||
if [ $MAKEUBIIMGGURU = 1 ]; then
|
||||
echo -e "\033[1mCreating a rootfs.ubi.img for GuruPlug...\033[0m"
|
||||
cat << EOF > ./ubi.cfg
|
||||
[ubifs]
|
||||
mode=ubi
|
||||
|
@ -61,7 +62,7 @@ EOF
|
|||
ubinize -o rootfs.ubi.img -m 2048 -p 128KiB -s 512 ./ubi.cfg
|
||||
rm -f ubi.cfg rootfs.ubifs.img
|
||||
else
|
||||
echo -e "\033[1mNot creating an UBI image...\033[0m"
|
||||
echo -e "\033[1mNot creating UBI image for GuruPlug...\033[0m"
|
||||
fi
|
||||
|
||||
echo -e "\033[1mCleaning up...\033[0m"
|
||||
|
|
Loading…
Reference in a new issue