Ubuntu Pastebin

Paste from ogra at Tue, 7 Jul 2015 17:54:41 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
-# now build the azure device tarball by adding walinuxagent
-if [ -e binary/boot/filesystem.dir/var/lib/dpkg/info/walinuxagent.list ];
-then
-(
- cd binary/boot/filesystem.dir 
- while read line; do
-     line=$(echo $line |cut -d/ -f2-)
-     if [ -e "$line" ] && [ ! -d "$line" ]; then
-         cp -ar --parent $line $TMPDIR/system
-     fi
- done < var/lib/dpkg/info/walinuxagent.list
- # created by walinuxagent postinst/dh-systemd
- cp -ar --parent var/lib/systemd/deb-systemd-helper-enabled/walinuxagent* $TMPDIR/system
- cp -ar --parent etc/systemd/system/multi-user.target.wants/walinuxagent* $TMPDIR/system
- mkdir -p $TMPDIR/system/var/lib/waagent
-)
-# and tar it up
-(
- cd $TMPDIR
- tar -c -z -f $HERE/device-azure.tar.gz system assets hardware.yaml
-)
Download as text