Skip to content

Commit

Permalink
revert to 14.04 (systemd/rc.local not sending output to tty1 in 16.04)
Browse files Browse the repository at this point in the history
  • Loading branch information
themighty1 committed Jan 29, 2018
1 parent 45302aa commit 255345a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions INSTALL.oracles
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-------------------------------------------------------------------------------
HOW TO CREATE A TLSNOTARY ORACLE EBS SNAPSHOT.
-------------------------------------------------------------------------------
In N.Virginia region create a volume from snap-0f9367939aa79509e (used by Ubuntu Server 16.04 LTS ami-41e0b93b).
In N.Virginia region create a volume from snap-f70deff0 (used by Ubuntu Server 14.04 LTS ami-fce3c696).
Attach the volume to any running instance as e.g. /dev/sdf.

From within the instance:
Expand All @@ -16,8 +16,7 @@ From within the instance:
DISK=/mnt/disk
rm $DISK/etc/init.d/ssh
rm $DISK/usr/sbin/sshd
sed -i '123s/.*/linux \/boot\/vmlinuz-4.4.0-1047-aws root=\/dev\/xvda1 ro console=tty1 console=ttyS0 nvme.io_timeout=4294967295/' $DISK/boot/grub/grub.cfg
sed -i 's/- bootcmd//' $DISK/etc/cloud/cloud.cfg
sed -i '122s/.*/linux \/boot\/vmlinuz-3.13.0-74-generic root=\/dev\/xvda1 ro console=tty1 console=ttyS0/' $DISK/boot/grub/grub.cfg sed -i 's/- bootcmd//' $DISK/etc/cloud/cloud.cfg
sed -i 's/- runcmd//' $DISK/etc/cloud/cloud.cfg
sed -i 's/- rightscale_userdata//' $DISK/etc/cloud/cloud.cfg
sed -i 's/- scripts-user//' $DISK/etc/cloud/cloud.cfg
Expand Down Expand Up @@ -90,18 +89,18 @@ The outputs must match.

Also make sure that MBR and boot sector raw disk data match up to the point where filesystem starts.
Note: we do not check ext4 filesystem headers because they are not deterministic.
fdisk -l /dev/xvdg should show you that you only have 1 partition which starts at sector 2048
fdisk -l /dev/xvdg should show you that you only have 1 partition which starts at sector 16065

<bash>
cd /mnt/disk1
find . -printf '%h %f %U %G %m %l\n' | sort -t \n | sha256sum
find . -type f -print0 | sort -z | xargs -0 sha256sum | sha256sum
dd if=/dev/xvdg ibs=512 count=2049 | sha256sum
dd if=/dev/xvdg ibs=512 count=16066 | sha256sum

cd /mnt/disk2
find . -printf '%h %f %U %G %m %l\n' | sort -t \n | sha256sum
find . -type f -print0 | sort -z | xargs -0 sha256sum | sha256sum
dd if=/dev/xvdh ibs=512 count=2049 | sha256sum
dd if=/dev/xvdh ibs=512 count=16066 | sha256sum
</bash>


Expand Down

0 comments on commit 255345a

Please sign in to comment.