mirror of
https://github.com/tasket/Qubes-VM-hardening.git
synced 2024-10-01 06:35:42 -04:00
Don't mount on exit
This commit is contained in:
parent
fce9e8ea04
commit
2139bedb42
@ -39,14 +39,13 @@ abort_startup() {
|
||||
|
||||
umount /dev/xvdb
|
||||
mv -f /dev/xvdb /dev/badxvdb
|
||||
mount -o ro /dev/badxvdb $rw
|
||||
truncate --size=500M /root/dev-xvdb
|
||||
loop=`losetup --find --show /root/dev-xvdb`
|
||||
mv -f $loop /dev/xvdb
|
||||
|
||||
cat /etc/bashrc /etc/bash.bashrc >/etc/bashrc-insert
|
||||
echo "echo '** VM-BOOT-PROTECT SERVICE SHELL'" >/etc/bashrc
|
||||
echo "echo '** Private volume is located at' $rw" >>/etc/bashrc
|
||||
echo "echo '** Private volume is located at /dev/badxvdb'" >>/etc/bashrc
|
||||
echo "cat $errlog" >>/etc/bashrc
|
||||
echo ". /etc/bashrc-insert" >>/etc/bashrc
|
||||
ln -f /etc/bashrc /etc/bash.bashrc
|
||||
|
Loading…
Reference in New Issue
Block a user