mirror of
https://github.com/pygos/build.git
synced 2024-11-25 04:20:41 +01:00
Remove overlay partition setup from release shell scripts
The initial ram disk does that for us (with the propper permissions in the case of Qemu). Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
cf60632398
commit
c16ff53c14
5 changed files with 1 additions and 41 deletions
|
@ -47,16 +47,6 @@ cp -r VERSIONDIR /tmp/mnt.$$/
|
|||
umount /tmp/mnt.$$
|
||||
MOUNTED=0
|
||||
|
||||
mount -t btrfs ${LODEV}p2 /tmp/mnt.$$
|
||||
MOUNTED=1
|
||||
mkdir /tmp/mnt.$$/etc /tmp/mnt.$$/etc_work
|
||||
mkdir /tmp/mnt.$$/var_lib /tmp/mnt.$$/var_lib_work
|
||||
mkdir -p /tmp/mnt.$$/usr/root /tmp/mnt.$$/usr_work
|
||||
chmod 700 /tmp/mnt.$$/usr/root /tmp/mnt.$$/usr_work
|
||||
chown 0:0 /tmp/mnt.$$/usr/root
|
||||
umount /tmp/mnt.$$
|
||||
MOUNTED=0
|
||||
|
||||
losetup -d ${LODEV}
|
||||
LOOPATTACHED=0
|
||||
|
||||
|
|
|
@ -52,16 +52,6 @@ cp -r VERSIONDIR /tmp/mnt.$$/
|
|||
umount /tmp/mnt.$$
|
||||
MOUNTED=0
|
||||
|
||||
mount -t btrfs ${DEVICE}2 /tmp/mnt.$$
|
||||
MOUNTED=1
|
||||
mkdir /tmp/mnt.$$/etc /tmp/mnt.$$/etc_work
|
||||
mkdir /tmp/mnt.$$/var_lib /tmp/mnt.$$/var_lib_work
|
||||
mkdir -p /tmp/mnt.$$/usr/root /tmp/mnt.$$/usr_work
|
||||
chmod 700 /tmp/mnt.$$/usr/root /tmp/mnt.$$/usr_work
|
||||
chown 0:0 /tmp/mnt.$$/usr/root
|
||||
umount /tmp/mnt.$$
|
||||
MOUNTED=0
|
||||
|
||||
rmdir /tmp/mnt.$$
|
||||
|
||||
dd if=mbr.bin of=$DEVICE
|
||||
|
|
|
@ -11,7 +11,7 @@ CMDLINE=$(cat "$BOOT/cmdline.txt")
|
|||
RAM="256M"
|
||||
MAC0="52:54:00:12:34:56"
|
||||
|
||||
mkdir -p ${OVERLAY}/{etc,etc_work,usr,usr_work,var_lib,var_lib_work}
|
||||
mkdir -p ${OVERLAY}
|
||||
|
||||
qemu-system-x86_64 \
|
||||
-drive "file=fat:rw:$BOOT,readonly=off,format=raw,if=virtio" \
|
||||
|
|
|
@ -45,16 +45,6 @@ cp -r boot/* /tmp/mnt.$$/
|
|||
umount /tmp/mnt.$$
|
||||
MOUNTED=0
|
||||
|
||||
mount -t btrfs ${LODEV}p2 /tmp/mnt.$$
|
||||
MOUNTED=1
|
||||
mkdir /tmp/mnt.$$/etc /tmp/mnt.$$/etc_work
|
||||
mkdir /tmp/mnt.$$/var_lib /tmp/mnt.$$/var_lib_work
|
||||
mkdir -p /tmp/mnt.$$/usr/root /tmp/mnt.$$/usr_work
|
||||
chmod 750 /tmp/mnt.$$/usr/root /tmp/mnt.$$/usr_work
|
||||
chown 0:0 /tmp/mnt.$$/usr/root
|
||||
umount /tmp/mnt.$$
|
||||
MOUNTED=0
|
||||
|
||||
losetup -d ${LODEV}
|
||||
LOOPATTACHED=0
|
||||
|
||||
|
|
|
@ -50,14 +50,4 @@ cp -r boot/* /tmp/mnt.$$/
|
|||
umount /tmp/mnt.$$
|
||||
MOUNTED=0
|
||||
|
||||
mount -t btrfs ${DEVICE}p2 /tmp/mnt.$$
|
||||
MOUNTED=1
|
||||
mkdir /tmp/mnt.$$/etc /tmp/mnt.$$/etc_work
|
||||
mkdir /tmp/mnt.$$/var_lib /tmp/mnt.$$/var_lib_work
|
||||
mkdir -p /tmp/mnt.$$/usr/root /tmp/mnt.$$/usr_work
|
||||
chmod 750 /tmp/mnt.$$/usr/root /tmp/mnt.$$/usr_work
|
||||
chown 0:0 /tmp/mnt.$$/usr/root
|
||||
umount /tmp/mnt.$$
|
||||
MOUNTED=0
|
||||
|
||||
rmdir /tmp/mnt.$$
|
||||
|
|
Loading…
Reference in a new issue