diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-03-23 13:04:21 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-03-23 13:04:21 +0000 |
commit | faf19a4a5544cf9b77437904b78af2aa03011d77 (patch) | |
tree | 216b427a0f540a78475b53805356c9d73b170f4b /protostar | |
parent | d4058e8b2d1861a38a20f983c1cfa3e28180880c (diff) | |
download | live-faf19a4a5544cf9b77437904b78af2aa03011d77.tar.gz |
add vim-nox, xz-utils; move some libs to /lib; fix init issue
Diffstat (limited to 'protostar')
-rwxr-xr-x | protostar | 22 |
1 files changed, 18 insertions, 4 deletions
@@ -28,7 +28,7 @@ echo "Preparing base system (debootstrap)..." debootstrap \ --no-check-gpg \ --exclude=syslogd,gawk,aptitude \ - --include=illumos-grub,illumos-kernel,mc,vim,openssh-client,wget,bzip2,debootstrap,less \ + --include=illumos-grub,illumos-kernel,mc,vim-nox,openssh-client,wget,bzip2,xz-utils,debootstrap,less \ "${DIST}" \ "${ROOT}" \ "${REPO}" @@ -77,6 +77,9 @@ touch "${ROOT}/etc/dhcp.e1000g0" # Set root password (just "root"): echo 'root:root' | chpasswd -R "$ROOT" +# See http://osdyson.org/issues/107 +stty -F /dev/syscon -g > $ROOT/etc/ioctl.syscon + # Script to find and mount usr.lzma: sed "s/USR_IMG/$USR_IMG/" "find-usr" > "${ROOT}/lib/svc/method/find-usr" chmod +x "${ROOT}/lib/svc/method/find-usr" @@ -93,6 +96,7 @@ exit 0 echo "$dummy_prog" > "${ROOT}/lib/svc/method/boot-archive" echo "$dummy_prog" > "${ROOT}/lib/svc/method/boot-archive-update" + echo "Importing manifests..." rm "${ROOT}/lib/svc/manifest/system/early-manifest-import.xml" @@ -111,7 +115,19 @@ mkdir -p "${BOOTARCH}/cdrom" ( cd "${ROOT}" -mv -v -f usr/lib32/* lib32/ || true +march=`dpkg-architecture -qDEB_HOST_MULTIARCH` +mkdir -p lib/$march +for lib in \ + libfmevent \ + liblzma \ + libsunavl \ + libxml2 \ + libz \ + libzonecfg \ + ; do + mv -v -f usr/lib/$march/$lib.so.* lib/$march/ || \ + mv -v -f usr/lib/$lib.so.* lib/$march/ +done # List here files or directories which # should be *moved* to boot archive. @@ -127,7 +143,6 @@ tar --remove-files -c -f - \ home \ kernel \ lib \ - lib32 \ media \ mnt \ opt \ @@ -153,7 +168,6 @@ tar -c -f - \ usr/sbin \ | tar xf - -C "${BOOTARCH}" - # We need only kernel itself for GRUB. # BTW, kernel should be in boot archive as well (WTF?) find platform -type f -a ! -name unix -delete |