Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. # Automated setup of my debian machines via preseeding
  2.  
  3. This config is designed to be used on a 32GB sd card with armhf arch e.g. for a PI.
  4.  
  5. Partitioning will be:
  6. * 1.: 256 MB boot (ext2)
  7. * 2.: 20 GB root (ext4)
  8. * 3.: 3 GB var (ext4)
  9. * 4.: 2 GB swap (swap)
  10. * 5.: 1 GB tmp (ext4)
  11. * 6.: >2 GB home (ext4)
  12.  
  13. ## Aditional setup
  14. ### Modification of boot.scr needed:
  15. ```
  16. # this is at least on my device need because I would like to see sth
  17. setenv console tty1
  18. # enabling the installer to use the preseeding
  19. setenv bootargs \
  20. # enable preseeding
  21. auto=true \
  22. # set hostname
  23. netcfg/get_hostname=BPi \
  24. # set domain
  25. netcfg/get_domain=b.molikuner.com \
  26. # actually I never tested which I need but again the hostname
  27. netcfg/hostname=BPi \
  28. # actually I never tested which I need but again the domain
  29. netcfg/domain=b.molikuner.com \
  30. # the server hosting the preseed.cfg in the default folder (prefer using nweb (debian-workspace) for this task)
  31. url=10.0.0.1 \
  32. # use static net cfg
  33. netcfg/disable_autoconfig=true \
  34. # set ip address (should be removed from installed system at /etc/dhcpcd.conf)
  35. netcfg/get_ipaddress=10.0.0.2 \
  36. # set netmask (same as above)
  37. netcfg/get_netmask=255.0.0.0 \
  38. # set gateway (same as above)
  39. netcfg/get_gateway=10.0.0.1 \
  40. # set nameserver (same as above)
  41. netcfg/get_nameservers=1.1.1.1 \
  42. # confirm static settings
  43. netcfg/confirm_static=true
  44. ```
  45. recompile your boot.scr with:
  46. ```bash
  47. mkimage -A arm -T script -O linux -d boot.cmd boot.scr
  48. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement