Sponsored Content
Operating Systems Linux Debian Debian installer or how to preseed Post 303035838 by nodorgrom on Tuesday 4th of June 2019 01:11:50 PM
Old 06-04-2019
Code:
preseed partman-auto/expert_recipe string multiraid :: 1000 5000 4000 raid $primary{ } method{ raid } . 1000 4000 4000 raid method{ raid } . 1000 5000 4000 raid method{ raid } . 1000 5000 4000 raid method{ raid } . 1000 5000 10000000000 raid method{ raid } .
preseed partman-auto-raid/recipe string 1 2 0 ext4 / /dev/sda1#/dev/sdb1 . 1 2 0 ext4 /home /dev/sda5#/dev/sdb5 . 1 2 0 ext4 /var /dev/sda6#/dev/sdb6 . 1 2 0 ext4 /usr /dev/sda7#/dev/sdb7 . 1 2 0 ext4 /local /dev/sda8#/dev/sdb8 .


These rows ignored and installation is continue by default /dev/sda1 / ext4 100%
Also in %pre section are unavailable drives information, for example
Code:
list-devices disk

or
Code:
ls /dev/* | egrep -io '[hs]d[a-z]' | sort | uniq

I'm needed it that I would make flexible templates (for ssd raid or hdd (with GPT) or ssd + hdd, etc)
 

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Ubuntu Preseed not found

Hello there! I am not certain that this is the proper place to post this, but I will try anyway. I am trying to install Ubuntu using a preseed on a USB thumb drive, and I am having problems. Hopefully someone here is able to help me. I have a file named 'preseed.cfg' in the root directory... (4 Replies)
Discussion started by: Curtor
4 Replies

2. UNIX for Advanced & Expert Users

Running Script after Preseed Install

Hello there, If you don't want to here the long version, but still want to answer my question, please skip down to THE BOTTOM! You can probably tell what I want to do already from the title, so I'll sum up what I have already done real quick: First off, for those that don't know, a preseed... (1 Reply)
Discussion started by: Curtor
1 Replies

3. UNIX for Advanced & Expert Users

rpm,pkg and debian installer

Hi, Can someone explain what's the difference between rpm, pkg and debian installer and what is the advantage of one above the other? Thanks (2 Replies)
Discussion started by: naan
2 Replies

4. Ubuntu

Problem creating Desktop shortcuts through Debian dpkg installer scripts

Hi, I am creating a debian package (*.deb) for my application using the command I am using debian pre/post installer scripts to do certain tasks before/after installation/uninstallation. One such task is to create a shortcut on the user's desktop to launch my application. I am trying to do this... (0 Replies)
Discussion started by: royalibrahim
0 Replies
NASH(8) 						      System Manager's Manual							   NASH(8)

NAME
nash - script interpretor to interpret linuxrc images SYNOPSIS
nash [--quiet] [--force] script DESCRIPTION
nash is a very simple script interpretor designed to be as small as possible. It is primarily designed to run simple linuxrc scripts on an initrd image. Arguments to commands may be enclosed in either single or double quotes to allow spaces to be included in the arguments. Spa- ces outside of quotations always delineate arguments, and so backslash escaping is supported. Additionally, if nash is invoked as modprobe, it will immediately exit with a return code of zero. This is to allow initrd's to prevent some extraneous kernel error messages during startup. There are two types of commands, built in and external. External commands are run from the filesystem via execve(). If commands names are given without a path, nash will search it's builtin PATH, which is /usr/bin, /bin, /sbin, /usr/sbin. Currently, nash supports the following built in commands. access -[r][w][x][f] path Tells whether the current user has sufficient permissions to read, write, or execture path, or if the file exists (see access(2) for more information). echo [item]* [> filename] Echos the text strings given to a file, with a space in between each item. The output may be optionally redirected to a file. exec <command> The command given is execed, overlaying the nash process. find dir -name name Display the path to files named name in or below directory dir. This is a very limited implementation of find(1). findlodev Prints the full path to the first unused loopback block device on the system. If none is available, no output is displayed. losetup /dev/loopdev file Binds file to the loopback device /dev/loopdev. See losetup(8) for information on loopback devices. mkdevices path Creates device files for all of the block devices listed in /proc/partitions in the directory specfied by path. mkdir [-p] path Creates the directory path. If -p is specified, this command will not complain if the directory exists. Note this is a subset of the standard mkdir -p behavior. mknod path [c|b] major minor Creates a device inode for path. This is identical to mkdev(1) which the exceptions that it will not create named pipes and if the directories in path do not exist they will be automatically created. mkrootdev path Makes path a block inode for the device which should be mounted as root. To determine this device nash uses the device suggested by the root= kernel command line argument (if root=LABEL is used devices are probed to find one with that label). If no root= argument is available, /proc/sys/kernel/real-root-dev provides the device number. mount [--ro] -o opts -t type device mntpoint Mounts a filesystem. It does not support NFS, and it must be used in the form given above (arguments must go first). If device is of the form LABEL=foo the devices listed in /fB/proc/partitions will be searched, and the first device with a volume label of foo will be mounted. Normal mount(2) options are supported, and --ro will mount the filesystem read only for compatibility with older versions of nash. The defaults mount option is silently ignored. pivot_root newrootpath oldrootpath Makes the filesystem mounted at newrootpath the new root filesystem, and mounts the current root filesystem as oldrootpath. raidautorun mddevice Runs raid autodetection on all raid-typed partitions. mddevice must be a raid device (any will do). showlabels Display a table of devices, their filesystem labels, and their uuids. umount path Unmounts the filesystem mounted at path. RETURN VALUE
Returns 0 is the last command succeeded or 1 if it failed. OPTIONS
--force Allows force really execute the script, even though nash doesn't appear to be running from an initrd image. BUGS
Probably many. nash is not a shell, and it shouldn't be thought of as one. It isn't entirely different from a shell, but that's mostly by accident. AUTHOR
Erik Troan <ewt@redhat.com> 4th Berkeley Distribution Sat Mar 27 1999 NASH(8)
All times are GMT -4. The time now is 02:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy