Release Vulpes OS 2.7-preview.24
This commit is contained in:
parent
49572b6b45
commit
97ef99f827
135 changed files with 7717 additions and 2524 deletions
|
|
@ -45,7 +45,19 @@ done
|
|||
/sbin/dropbear -E -s -j -k -p 10.15.19.82:2222 -r /etc/tundra-hostkey -P /run/dropbear.pid
|
||||
echo TUNDRA_USB_SSH_READY
|
||||
# No LVM activation, fsck, journal replay, resizing, or writes to a block device.
|
||||
if [ -b /dev/mmcblk0p72 ] && [ "$(dd if=/dev/mmcblk0p72 bs=1048576 count=1 2>/dev/null | sha256sum | cut -d' ' -f1)" = "$EXPECTED_STORAGE_HASH" ]; then
|
||||
if [ "${RAW_USERDATA_EXT4:-0}" = 1 ]; then
|
||||
# Ext4 updates mutable mount counters and timestamps in the first MiB; use
|
||||
# the filesystem UUID at the fixed superblock offset as the stable identity.
|
||||
actual_uuid=$(dd if=/dev/mmcblk0p72 bs=1 skip=1128 count=16 2>/dev/null | od -An -tx1 | tr -d ' \n')
|
||||
if [ -b /dev/mmcblk0p72 ] && [ "$actual_uuid" = "$EXPECTED_STORAGE_UUID_HEX" ]; then
|
||||
mkdir -p /installed
|
||||
if [ "${TUNDRA_USERDATA_RW:-0}" = 1 ]; then
|
||||
mount -t ext4 -o rw /dev/mmcblk0p72 /installed
|
||||
else
|
||||
mount -t ext4 -o ro,noload /dev/mmcblk0p72 /installed
|
||||
fi
|
||||
fi
|
||||
elif [ -b /dev/mmcblk0p72 ] && [ "$(dd if=/dev/mmcblk0p72 bs=1048576 count=1 2>/dev/null | sha256sum | cut -d' ' -f1)" = "$EXPECTED_STORAGE_HASH" ]; then
|
||||
mkdir -p /dev/mapper /installed
|
||||
/sbin/dmsetup create tundra-installed-ro --readonly --table '0 104448000 linear /dev/mmcblk0p72 329728'
|
||||
/sbin/dmsetup mknodes
|
||||
|
|
|
|||
Loading…
Reference in a new issue