Skip to content

Instantly share code, notes, and snippets.

@jimcadden
Last active December 20, 2015 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimcadden/6125510 to your computer and use it in GitHub Desktop.
Save jimcadden/6125510 to your computer and use it in GitHub Desktop.
cp /usr/lib/systemd/system/getty@.service /usr/lib/systemd/system/autologin@.service

update file: [/usr/lib/systemd/system/autologin@.service]

add in the line ExecStart= -a USERNAMe after --noclear

example:

 ExecStart=-/sbin/agetty --noclear -a root %I 38400 linux 
systemctl disable getty@tty1
systemctl enable autologin@tty1
systemctl start autologin@tty1

systemctl enable autologin@ttyS0
systemctl start autologin@ttyS0

ArchWiki

@jimcadden
Copy link
Author

cat /etc/grub.d/40_custom

menuentry "aufs linux" {

set root=(hd0,1)
linux /boot/vmlinuz-linux-aufs_friendly
initrd /boot/initramfs-linux-aufs_friendly.img
}

grub-mkconfig -o /boot/grub/grub.cfg

@jimcadden
Copy link
Author

/root/bash_profile

if [[ -a /dev/dba1 ]]; then
mount -r -n -t vfat -v /dev/sdb1 /root/ebbrt
sleep 1
if [[ -a /root/ebbrt/run ]]; then
/root/ebbrt/run
fi
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment