diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-03-25 00:36:26 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-03-25 00:36:26 +0000 |
commit | 92f518209b7550c78843bc2dcaa2b2f677be0908 (patch) | |
tree | 6e84839dd8eff484b8122246a49dc823cdbea45b /protostar | |
parent | 9905994b04e05b51fec788857740bf365aed1d73 (diff) | |
download | live-92f518209b7550c78843bc2dcaa2b2f677be0908.tar.gz |
Can create bootable CD again2013-03-25
Diffstat (limited to 'protostar')
-rwxr-xr-x | protostar | 23 |
1 files changed, 18 insertions, 5 deletions
@@ -2,7 +2,6 @@ set -e set -u -set -x TMP="${TMP:-/var/tmp}" @@ -47,7 +46,7 @@ echo "Preparing base system (debootstrap)..." debootstrap \ --no-check-gpg \ --exclude=syslogd,gawk,aptitude,aptitude-common,libboost-iostreams1.48.0,libboost-iostreams1.49.0,libcwidget3 \ - --include=illumos-grub,illumos-kernel,mc,vim-tiny,openssh-client,openssh-server,wget,bzip2,xz-utils,debootstrap,less \ + --include=illumos-grub,illumos-kernel,mc,vim-tiny,openssh-client,wget,bzip2,xz-utils,debootstrap,less,file,lynx,bash-completion \ "${DIST}" \ "${ROOT}" \ "${REPO}" @@ -61,10 +60,14 @@ rm -rf "${ROOT}"/var/log/* rm -rf "${ROOT}"/var/adm/* rm -rf "${ROOT}"/usr/share/doc/* +# Remove messages and localized mans: +rm -rf "${ROOT}"/usr/share/locale/*/LC_MESSAGES +rm -rf "${ROOT}"/usr/share/man/*/man[0-9]* + devfsadm -r "${ROOT}" -sed -i '/^PermitRootLogin/ s,no,yes,' /etc/ssh/sshd_config +#sed -i '/^PermitRootLogin/ s,no,yes,' /etc/ssh/sshd_config cat <<BOOTENV > $ROOT/boot/solaris/bootenv.rc setprop ata-dma-enabled 1 @@ -86,6 +89,7 @@ cat <<VFSTAB > $ROOT/etc/vfstab #to mount to fsck point type pass at boot options # /devices/ramdisk:a - / ufs 1 no rw,nologging +fd - /dev/fd fd - no - VFSTAB @@ -95,6 +99,7 @@ touch "${ROOT}/etc/dhcp.e1000g0" # Set root password (just "root"): echo 'root:root' | chpasswd -R "$ROOT" +echo 'User: root, password: root' >> "${ROOT}/etc/issue" # Script to find and mount usr.lzma: sed "s/##USR_IMG##/$USR_IMG/g" "fs-root" > "${ROOT}/lib/svc/method/fs-root" @@ -123,6 +128,7 @@ mkdir -p "${BOOTARCH}/usr" mkdir -p "${BOOTARCH}/cdrom" pushd "${ROOT}" + # Move some critical libs: march=`dpkg-architecture -qDEB_HOST_MULTIARCH` mkdir -p lib/$march @@ -157,10 +163,13 @@ ln -sf ../../sbin usr/sbin # and creating symlinks from usr to usr1 usr_symlink_move usr/bin/cat usr_symlink_move usr/bin/dash +usr_symlink_move usr/bin/ln usr_symlink_move usr/bin/ls +usr_symlink_move usr/bin/rm usr_symlink_move usr/bin/sh usr_symlink_move usr/lib/devfsadm -usr_symlink_move usr/lib/fs +usr_symlink_move usr/lib/fs/ufs/mount +usr_symlink_move usr/lib/fs/hsfs/mount # usr2 will be packed and stored on CD: mv usr usr2 @@ -168,6 +177,7 @@ mv usr usr2 # This is usr before usr2 is mounted, # fs-root will mount usr2 and replace usr -> usr2 ln -sf usr1 usr +ln -sf ../../sbin usr1/sbin # List here files or directories which # should be *moved* to boot archive. @@ -251,7 +261,10 @@ timeout=3 splashimage=/boot/grub/splash.xpm.gz foreground=ffffff background=215ECA -title Dyson ($DIST), $DATE +title Dyson ($DIST) LiveCD, $DATE + kernel /platform/i86pc/kernel/amd64/unix + module /boot/boot_archive.gz +title Dyson ($DIST) LiveCD, $DATE - verbose boot kernel /platform/i86pc/kernel/amd64/unix -k -m verbose module /boot/boot_archive.gz GRUB |