Use wheezy (+backports) again (remove systemd support).

pull/33/head
Raphaël Vinot 2015-03-09 18:35:48 +01:00
parent c88fd3f223
commit fa0e4e2468
6 changed files with 54 additions and 64 deletions

View File

@ -51,6 +51,4 @@ lightdm:x:109:
indiecity:x:1001:root
spi:x:1002:pi
gpio:x:1003:pi
weston-launch:x:110:
kitten:x:1004:
systemd-journal:x:111:

View File

@ -13,7 +13,7 @@
clean(){
echo 'Rc Local done, quit.'
systemctl poweroff
/sbin/shutdown -P -h now
}
# Print the IP address
@ -24,19 +24,11 @@ fi
if [ -e /dev/sda ]; then
if [ -e /dev/sdb ]; then
# avoid possible misuse
/sbin/ifconfig eth0 down
trap clean EXIT TERM INT
cd /opt/groomer
/usr/sbin/led &
# avoid possible misuse
systemctl stop display-manager
systemctl stop sshd
systemctl stop ssh
systemctl stop dbus-org.freedesktop.ModemManager1
systemctl stop cron
systemctl stop ModemManager
#systemctl stop rsyslog
#systemctl stop syslog
#systemctl stop remote-fs
#/usr/sbin/led &
./init.sh
fi
fi

View File

@ -1,13 +0,0 @@
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=oneshot
ExecStart=/etc/rc.local start
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target

View File

@ -31,7 +31,7 @@ PARTITION_BOOT='/dev/sdd1'
# If you use the img
##### Debian
IMAGE='2014-09-09-wheezy-raspbian.img'
IMAGE='2015-02-16-raspbian-wheezy.img'
OFFSET_ROOTFS=$((122880 * 512))
OFFSET_BOOT=$((8192 * 512))
##### Arch

View File

@ -1,53 +1,66 @@
Add empty space to the image
============================
Add 2Gb
* Add 2Gb
> dd if=/dev/zero bs=1024k count=2048 >> 2014-09-09-wheezy-raspbian.img
```
> dd if=/dev/zero bs=1024k count=2048 >> 2015-02-16-raspbian-wheezy.img
```
Expand partition size
=====================
> fdisk 2014-09-09-wheezy-raspbian.img
```
> fdisk 2015-02-16-raspbian-wheezy.img
Command (m for help): *p*
Command (m for help): *p*
Disk 2013-02-09-wheezy-raspbian.img: 4087 MB, 4087349248 bytes
255 heads, 63 sectors/track, 496 cylinders, total 7983104 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00014d34
Disk 2013-02-09-wheezy-raspbian.img: 4087 MB, 4087349248 bytes
255 heads, 63 sectors/track, 496 cylinders, total 7983104 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00014d34
Device Boot Start End Blocks Id System
2013-02-09-wheezy-raspbian.img1 8192 122879 57344 c W95 FAT32 (LBA)
2013-02-09-wheezy-raspbian.img2 *122880* 3788799 1832960 83 Linux
Device Boot Start End Blocks Id System
2015-02-16-raspbian-wheezy.img1 8192 122879 57344 c W95 FAT32 (LBA)
2015-02-16-raspbian-wheezy.img2 *122880* 3788799 1832960 83 Linux
Command (m for help): *d*
Partition number (1-4): *2*
Command (m for help): *d*
Partition number (1-4): *2*
Command (m for help): *n*
Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended
Select (default p):
Partition number (1-4, default 2):
First sector (2048-7983103, default 2048): *122880*
Last sector, +sectors or +size{K,M,G} (122880-7983103, default 7983103):
Using default value 7983103
Command (m for help): *n*
Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended
Select (default p):
Partition number (1-4, default 2):
First sector (2048-7983103, default 2048): *122880*
Last sector, +sectors or +size{K,M,G} (122880-7983103, default 7983103):
Using default value 7983103
Command (m for help): *w*
The partition table has been altered!
Command (m for help): *w*
The partition table has been altered!
Syncing disks.
Syncing disks.
```
Resize partition
================
> df | grep /mnt/arm
* Chroot in the image
/dev/loop0 3927752 1955672 1794172 53% /mnt/arm_rPi
/dev/loop1 57288 18960 38328 34% /mnt/arm_rPi/boot
```
sudo ./proper_chroot.sh
```
sudo resize2fs /dev/loop0
* Resize the partition (not from the chroot)
```
> df | grep /mnt/arm
/dev/loop0 3927752 1955672 1794172 53% /mnt/arm_rPi
/dev/loop1 57288 18960 38328 34% /mnt/arm_rPi/boot
> sudo resize2fs /dev/loop0
```

View File

@ -2,7 +2,7 @@
# http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/
IMAGE='../2014-09-09-wheezy-raspbian.img'
IMAGE='../2015-02-16-raspbian-wheezy.img'
OFFSET_ROOTFS=$((122880 * 512))
IMAGE_VFAT_NORM="testcase.vfat"
@ -74,10 +74,10 @@ umount ${SETUP_DIR}
chmod -w ${IMAGE}
./run.exp ${IMAGE} ${IMAGE_VFAT_NORM} ${IMAGE_DEST}
sleep 10
./run.exp ${IMAGE} ${IMAGE_VFAT_PART} ${IMAGE_DEST}
sleep 10
./run.exp ${IMAGE} ${IMAGE_NTFS_NORM} ${IMAGE_DEST}
#sleep 10
#./run.exp ${IMAGE} ${IMAGE_VFAT_PART} ${IMAGE_DEST}
#sleep 10
#./run.exp ${IMAGE} ${IMAGE_NTFS_NORM} ${IMAGE_DEST}
# EXT* not supported due to permission issues
#sleep 10