Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Automated setup of my debian machines via preseeding
- This config is designed to be used on a 32GB sd card with armhf arch e.g. for a PI.
- Partitioning will be:
- * 1.: 256 MB boot (ext2)
- * 2.: 20 GB root (ext4)
- * 3.: 3 GB var (ext4)
- * 4.: 2 GB swap (swap)
- * 5.: 1 GB tmp (ext4)
- * 6.: >2 GB home (ext4)
- ## Aditional setup
- ### Modification of boot.scr needed:
- ```
- # this is at least on my device need because I would like to see sth
- setenv console tty1
- # enabling the installer to use the preseeding
- setenv bootargs \
- # enable preseeding
- auto=true \
- # set hostname
- netcfg/get_hostname=BPi \
- # set domain
- netcfg/get_domain=b.molikuner.com \
- # actually I never tested which I need but again the hostname
- netcfg/hostname=BPi \
- # actually I never tested which I need but again the domain
- netcfg/domain=b.molikuner.com \
- # the server hosting the preseed.cfg in the default folder (prefer using nweb (debian-workspace) for this task)
- url=10.0.0.1 \
- # use static net cfg
- netcfg/disable_autoconfig=true \
- # set ip address (should be removed from installed system at /etc/dhcpcd.conf)
- netcfg/get_ipaddress=10.0.0.2 \
- # set netmask (same as above)
- netcfg/get_netmask=255.0.0.0 \
- # set gateway (same as above)
- netcfg/get_gateway=10.0.0.1 \
- # set nameserver (same as above)
- netcfg/get_nameservers=1.1.1.1 \
- # confirm static settings
- netcfg/confirm_static=true
- ```
- recompile your boot.scr with:
- ```bash
- mkimage -A arm -T script -O linux -d boot.cmd boot.scr
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement