mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +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
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Plugbox Linux Distribution Image Builder
|
# Plugbox Linux Distribution Image Builder
|
||||||
# Version 0.2.0
|
# Version 0.2.1
|
||||||
#
|
#
|
||||||
# Licensed under the GPLv2.
|
# Licensed under the GPLv2.
|
||||||
#
|
#
|
||||||
|
@ -14,7 +14,8 @@
|
||||||
INSTALLEDPKGS="base kernel26-withlinux openssh openssl heimdal"
|
INSTALLEDPKGS="base kernel26-withlinux openssh openssl heimdal"
|
||||||
RELEASEVER=1.1
|
RELEASEVER=1.1
|
||||||
MAKETARGZ=1
|
MAKETARGZ=1
|
||||||
MAKEUBIIMG=1
|
MAKEUBIIMGSHEEVA=0
|
||||||
|
MAKEUBIIMGGURU=1
|
||||||
# ==== The Process ====
|
# ==== The Process ====
|
||||||
mkdir -p $1
|
mkdir -p $1
|
||||||
echo -e "\033[1mInstalling packages...\033[0m"
|
echo -e "\033[1mInstalling packages...\033[0m"
|
||||||
|
@ -45,8 +46,8 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Here is the UBI image part if you set MAKEUBIIMG to 1
|
# Here is the UBI image part if you set MAKEUBIIMG to 1
|
||||||
if [ $MAKEUBIIMG = 1 ]; then
|
if [ $MAKEUBIIMGGURU = 1 ]; then
|
||||||
echo -e "\033[1mCreating a rootfs.ubi.img...\033[0m"
|
echo -e "\033[1mCreating a rootfs.ubi.img for GuruPlug...\033[0m"
|
||||||
cat << EOF > ./ubi.cfg
|
cat << EOF > ./ubi.cfg
|
||||||
[ubifs]
|
[ubifs]
|
||||||
mode=ubi
|
mode=ubi
|
||||||
|
@ -61,7 +62,7 @@ EOF
|
||||||
ubinize -o rootfs.ubi.img -m 2048 -p 128KiB -s 512 ./ubi.cfg
|
ubinize -o rootfs.ubi.img -m 2048 -p 128KiB -s 512 ./ubi.cfg
|
||||||
rm -f ubi.cfg rootfs.ubifs.img
|
rm -f ubi.cfg rootfs.ubifs.img
|
||||||
else
|
else
|
||||||
echo -e "\033[1mNot creating an UBI image...\033[0m"
|
echo -e "\033[1mNot creating UBI image for GuruPlug...\033[0m"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\033[1mCleaning up...\033[0m"
|
echo -e "\033[1mCleaning up...\033[0m"
|
||||||
|
|
Loading…
Reference in a new issue