-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcordia-hd-armv7hl-n900.ks
125 lines (98 loc) · 3.62 KB
/
cordia-hd-armv7hl-n900.ks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# -*-mic2-options-*- -f raw --copy-kernel --record-pkgs=name --pkgmgr=yum --arch=armv7hl -*-mic2-options-*-
#
# Do not Edit! Generated by:
# kickstarter.py
#
lang en_US.UTF-8
keyboard us
timezone --utc Europe/Helsinki
part / --size=3600 --ondisk mmcblk0p --fstype=ext4
# This is not used currently. It is here because the /boot partition
# needs to be the partition number 3 for the u-boot usage.
part swap --size=8 --ondisk mmcblk0p --fstype=swap
# This partition is made so that u-boot can find the kernel
part /boot --size=32 --ondisk mmcblk0p --fstype=vfat
rootpw cordia
user --name cordia --groups audio,video --password cordia
repo --name=mer-core --baseurl=http://releases.merproject.org/releases/latest/builds/armv7hl/packages/ --save --debuginfo
repo --name=cordia-hildon --baseurl=http://repo.pub.meego.com/Project:/Cordia:/Hildon/Mer_Core_armv7hl/ --save
repo --name=ce-utils --baseurl=http://repo.pub.meego.com/CE:/Utils/Mer_Core_armv7hl/ --save
repo --name=ce-mw-shared --baseurl=http://repo.pub.meego.com/CE:/MW:/Shared/Mer_Core_armv7hl/ --save
repo --name=ce-ux-mtf --baseurl=http://repo.pub.meego.com/CE:/UX:/MTF/CE_MW_MTF_armv7hl/ --save
repo --name=ce-adaptation-n9xx-common --baseurl=http://repo.pub.meego.com/CE:/Adaptation:/N9xx-common/Mer_Core_armv7hl/ --save
repo --name=ce-adaptation-n900 --baseurl=http://repo.pub.meego.com/CE:/Adaptation:/N900/CE_Adaptation_N9xx-common_armv7hl/ --save
%packages
@Mer Core
@Mer Graphics Common
@Mer Connectivity
@Nokia N900 Support
@Nokia N900 Proprietary Support
@Mer Minimal Xorg
kernel-adaptation-n900
openssh-clients
openssh-server
xterm
vim-enhanced
contextkit-maemo-mce
usb-moded-config-n900
policy-settings-basic-n900
mce
xorg-x11-xauth
# Cordia HD
sound-theme-freedesktop
gnome-mime-data
gtk2-engines-sapwood
hildon-desktop
hildon-home
hildon-status-menu
hildon-theme-cacher
hildon-theme-layout-5
libhildon
libhildondesktop
libosso
osso-af-settings
hildon-theme-marina
%end
%post
# work around for poor key import UI in PackageKit
rm -f /var/lib/rpm/__db*
rpm --rebuilddb
# Prelink can reduce boot time
if [ -x /usr/sbin/prelink ]; then
/usr/sbin/prelink -aRqm
fi
# Hack to fix the plymouth based splash screen on N900
mv /usr/bin/ply-image /usr/bin/ply-image-real
cat > /usr/bin/ply-image << EOF
#!/bin/sh
echo 32 > /sys/class/graphics/fb0/bits_per_pixel
exec /usr/bin/ply-image-real $@
EOF
chmod +x /usr/bin/ply-image
# Use eMMC swap partition as MeeGo swap as well.
# Because of the 2nd partition is swap for the partition numbering
# we can just change the current fstab entry to match the eMMC partition.
sed -i 's/mmcblk0p2/mmcblk1p3/g' /etc/fstab
# This causes problems with the bme in N900 images so removing for now.
rm -f /lib/modules/*/kernel/drivers/power/bq27x00_battery.ko
# Remove cursor from showing during startup BMC#14991
echo "xopts=-nocursor" >> /etc/sysconfig/uxlaunch
# Without this line the rpm don't get the architecture right.
echo -n 'armv7hl-meego-linux' > /etc/rpm/platform
# Also libzypp has problems in autodetecting the architecture so we force tha as well.
# https://bugs.meego.com/show_bug.cgi?id=11484
echo 'arch = armv7hl' >> /etc/zypp/zypp.conf
# Set marina theme as default
ln -s marina /usr/share/themes/default
# Set symlink pointing to .desktop file
ln -sf x-hildon.desktop /usr/share/xsessions/default.desktop
# and services
ln -sf ../hildon-home.service ../hildon-status-menu.service /lib/systemd/system/graphical.target.wants/
# And a terminal
ln -sf /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty2.service
%end
%post --nochroot
if [ -n "$IMG_NAME" ]; then
echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/mer-release
fi
%end