forked from basukon/archlinux-lod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sync.sh
executable file
·32 lines (26 loc) · 830 Bytes
/
sync.sh
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
#!/bin/bash
# The idea of this script is to copy the generated archlinuxarm
# file structure into the official ubuntu image which should be
# mounted with: mount -o loop xenia.img ubuntu. We dont clean
# the entire /etc directory because removing some of its files
# make the image format invalid to Linux on Dex app.
rm -rf ubuntu/usr/*
rm -rf ubuntu/bin
rm -rf ubuntu/lib
rm -rf ubuntu/sbin
rm -rf ubuntu/var/*
rm -rf ubuntu/boot/*
cp -av archlinux/usr ubuntu/
cp -av archlinux/bin ubuntu/
cp -av archlinux/lib ubuntu
cp -av archlinux/sbin ubuntu/
cp -av archlinux/var ubuntu/
chmod u+s ubuntu/usr/bin/sudo
rm -rf archlinux/etc/init.d
rm archlinux/etc/lod_monitor.conf
rm archlinux/etc/LoDVersion
rm archlinux/resolv.conf
rm archlinux/securetty
rm archlinux/etc/subgid
rm archlinux/etc/subuid
cp -av archlinux/etc ubuntu/