Changes for page Openwrt Notes
Last modified by Leon Poon on 2019/11/02 17:53
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -41,16 +41,37 @@ 41 41 42 42 = Debian = 43 43 44 - Needs devtmpfs in kernel.Thisseemtobefirstthing that /sbin/initdoes. (Maybe systemdspecific.)44 +Things to do after debootstrap: 45 45 46 +* [[get rid of systemd>>http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_a_Debian_Stretch_installation]] 47 +* set hostname 48 +* set root password 49 +* /etc/network/interfaces (TODO: swconfig while still in openwrt initramfs space?) 50 +* apt-get install net-tools file ntp openssh-server gcc 51 +** net-tools for ifconfig 52 +** gcc for? 53 +* read-only root 54 + 55 +Needs CONFIG_DEVTMPFS=y in kernel. 56 + 46 46 {{code language="bash"}} 47 -mkdir -pv /mnt/debian && mknod /dev/sda b 8 0 && cryptsetup open /dev/sda usb && vgchange -ay vol_grp1 && mount /dev/vol_grp1/logical_vol1 /mnt/debian 48 -exec switch_root /mnt/debian /sbin/init 58 +mkdir -pv /mnt && mknod /dev/sda b 8 0 && cryptsetup open /dev/sda usb && vgchange -ay vol_grp1 && mount /dev/vol_grp1/logical_vol1 /mnt 49 49 {{/code}} 50 50 51 51 {{code language="bash"}} 62 +chroot /mnt /bin/bash 63 +{{/code}} 64 + 65 +{{code language="bash"}} 66 +mount proc /proc -t proc 67 +{{/code}} 68 + 69 +{{code language="bash"}} 70 +exec switch_root /mnt /sbin/init 71 +{{/code}} 72 + 73 +{{code language="bash"}} 52 52 ip addr add dev eth0 IP/NM 53 53 ip link set eth0 up 54 54 ip route add default via GW 55 55 {{/code}} 56 -